This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function() | |
local unit = nil | |
local group_type = "" | |
local group_size = 0 | |
if IsInRaid() then | |
group_type = "raid" | |
group_size = 40 | |
elseif IsInGroup() then | |
group_type = "party" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start | |
declarations | |
arrFull_Deck [2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14] | |
arrP1_hand [ ] | |
arrP2_hand [ ] | |
arrTable [ ] | |
num Full_DeckCardCount = 52 | |
num Table = 0 | |
num P1_CardValue | |
num P2_CardValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start | |
declarations | |
arrFull_Deck [2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14, 2,3,4,5,6,7,8,9,10,11,12,13,14] | |
arrP1_hand [ ] | |
arrP2_hand [ ] | |
arrTable [ ] | |
num Full_DeckCardCount = 52 | |
num Table = 0 | |
num P1_CardValue | |
num P2_CardValue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It's more advisable to store the compiled version of the jQuery template in JST, | |
// And then use a separate function that renders on a per-use basis from that pre-compiled template. | |
function jqueryCacheTemplate(templateString){ | |
return $.template(null, templateString); | |
} | |
function jqueryTemplate(name){ | |
return $.tmpl(JST[name], arguments[0], arguments[1]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acts_as_event_logger( | |
:attributes => [:active, :contact, :company_name, [:primary_address, :address_change], [:primary_address, :phone_change], [:primary_address, :phone2_change], | |
[:primary_address, :fax_change], :url, :description, :services, :coverage, :memberships, :business_since, :license_number, [:owners, :email], content_x_log_array ], | |
:cache_values => [:owners], | |
:event_type => "Profile Update" | |
) | |
#return an array of arrays for the act event logger track changes in content_ui fields | |
# [ profile content real name, "displayed field name: displayed field value"] |