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 ie8hack() { | |
$(window).unload(function(){ | |
ie8unload(); | |
}); | |
$(function(){ | |
ie8load(); | |
}) | |
} | |
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
require 'safe_fork' | |
class AuctionParser | |
attr_accessor :raw_data, :item_cache | |
COMMON_BAD_WORDS = %w(anyone full each ea for buying sell my pair per port res rez ress rezes will willing wis wisdom x) | |
def self.from_upload(raw_data) | |
new(raw_data) | |
end | |
def initialize(data) | |
raw_data = data |
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
def variance(population) | |
n = 0 | |
mean = 0.0 | |
s = 0.0 | |
population.each { |x| | |
n = n + 1 | |
delta = x - mean | |
mean = mean + (delta / n) | |
s = s + delta * (x - mean) | |
} |
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
void Mob::Taunt(NPC* who, bool always_succeed) { | |
if (who == NULL) | |
return; | |
if(GetInvul()) | |
return; | |
if(!CombatRange(who)) | |
return; |
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
sub EVENT_SIGNAL { | |
$ackilled--; | |
quest::say($ackilled); | |
if ($ackilled == 0) | |
{ | |
quest::settimer("crocs", 5); | |
} |
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
} else { | |
// no idea how taunt success is actually calculated | |
// TODO: chance for level 50+ mobs should be lower | |
int level_difference = level - who->GetLevel(); | |
if (level_difference <= 5) { | |
tauntchance = 25.0; // minimum | |
tauntchance += tauntchance * (float)GetSkill(TAUNT) / 200.0; // skill modifier | |
if (tauntchance > 65.0) | |
tauntchance = 65.0; |
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
def get_images | |
Dir['*.{png, gif, jpeg}'] | |
end | |
def image_is_2x?(image) | |
image.include?('@2x') | |
end | |
get_images.each do |image| |
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
require 'test/unit' | |
require 'test/unit/assertions' | |
require 'rubygems' | |
require 'shoulda' | |
require '../tesseract/tesseract' | |
class TesseractTest < Test::Unit::TestCase | |
context "test dependency os check fails windows" do | |
setup do | |
@old_val = RUBY_PLATFORM |
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
ArgumentError on line 42 of /Users/sdavis/Work/compass/lib/compass/commands/sprite.rb: wrong number of arguments (2 for 1) | |
/Users/sdavis/Work/compass/lib/compass/commands/sprite.rb:42:in `new' | |
/Users/sdavis/Work/compass/lib/compass/commands/sprite.rb:42:in `perform' | |
/Users/sdavis/Work/compass/lib/compass/commands/base.rb:18:in `execute' | |
/Users/sdavis/Work/compass/lib/compass/commands/project_base.rb:19:in `execute' | |
/Users/sdavis/Work/compass/lib/compass/exec/sub_command_ui.rb:43:in `perform!' | |
/Users/sdavis/Work/compass/lib/compass/exec/sub_command_ui.rb:15:in `run!' | |
/Users/sdavis/Work/compass/bin/compass:25 | |
/Users/sdavis/Work/compass/bin/compass:39:in `call' | |
/Users/sdavis/Work/compass/bin/compass:39 |
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
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script> |