Skip to content

Instantly share code, notes, and snippets.

View nzifnab's full-sized avatar

Nathan Benes nzifnab

  • Westin Consulting
  • Denver, CO
View GitHub Profile
@nzifnab
nzifnab / AB_Check.lua
Last active August 29, 2015 14:25 — forked from Choonster/BrandedStatus_1.lua
WA Code for missing AB...
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"
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
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
@nzifnab
nzifnab / jqueryTemplate.js
Created May 7, 2011 02:23 — forked from tosh/jammit-jquery-tmpl.coffee
jquery tmpl templating function for use with jammit
// 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]);
}
@nzifnab
nzifnab / conten_ui_log.rb
Created April 30, 2011 00:12
Get content_ui for log
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"]