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
diff --git a/src/node-proxy.cc b/src/node-proxy.cc | |
index 545ce0c..34ade71 100644 | |
--- a/src/node-proxy.cc | |
+++ b/src/node-proxy.cc | |
@@ -266,7 +266,7 @@ Handle<Value> NodeProxy::Create(const Arguments& args) { | |
instance->SetPrototype(args[1]); | |
} | |
- return scope.Close(instance); | |
+ return instance; |
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
BenefitTemplate.where(:benefit_id => TERRORISM_ID).each { |bt| bt.update_attributes! :calculator_class => 'Terrorism' } | |
BenefitTemplate.where(:benefit_id => EMPLOYMENT_LAYOFF_ID).each { |bt| bt.update_attributes! :calculator_class => 'EmploymentLayoff' } | |
BenefitTemplate.where(:benefit_id => MEDICAL_EVACUATION_ID).each { |bt| bt.update_attributes! :calculator_class => 'MedicalEvacuationAndRepatriation' } | |
BenefitTemplate.where(:benefit_id => CANCEL_FOR_WORK_REASONS_ID).each { |bt| bt.update_attributes! :calculator_class => 'CancelForWorkReasons' } | |
BenefitTemplate.where(:benefit_id => HOME_COUNTRY_ID).each { |bt| bt.update_attributes! :calculator_class => 'HomeCountryCoverage' } | |
BenefitTemplate.where(:benefit_id => FINANCIAL_DEFAULT_ID).each { |bt| bt.update_attributes! :calculator_class => 'FinancialDefault' } | |
BenefitTemplate.find(134).update_attributes! :calculator_class => 'FinancialDefaultAfterWait' | |
BenefitTemplate.find(135).update_attributes! :calculator_class => ' |
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
BenefitTemplate.where(:benefit_id => TERRORISM_ID).each { |bt| bt.update_attributes! :calculator_class => 'Terrorism' } | |
BenefitTemplate.where(:benefit_id => EMPLOYMENT_LAYOFF_ID).each { |bt| bt.update_attributes! :calculator_class => 'EmploymentLayoff' } | |
BenefitTemplate.where(:benefit_id => MEDICAL_EVACUATION_ID).each { |bt| bt.update_attributes! :calculator_class => 'MedicalEvacuationAndRepatriation' } | |
BenefitTemplate.where(:benefit_id => CANCEL_FOR_WORK_REASONS_ID).each { |bt| bt.update_attributes! :calculator_class => 'CancelForWorkReasons' } | |
BenefitTemplate.where(:benefit_id => HOME_COUNTRY_ID).each { |bt| bt.update_attributes! :calculator_class => 'HomeCountryCoverage' } | |
BenefitTemplate.where(:benefit_id => FINANCIAL_DEFAULT_ID).each { |bt| bt.update_attributes! :calculator_class => 'FinancialDefault' } |
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
Sent through our site | |
:"ad-d_upgrade"=>"none", | |
:agent_id_number=>56061394, | |
:beneficiary=>"Joe Someone", | |
:cbTerms=>"true", | |
:cc_city=>"Fort Wayne", | |
:cc_cvv=>"xxx", | |
:cc_month=>"January", | |
:cc_number=>"xxxxxxxxxxxxxxxx", | |
:cc_postalcode=>"46802", |
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
array(54) { | |
[1]=> | |
array(8) { | |
[0]=> | |
string(1) "9" | |
[1]=> | |
string(2) "11" | |
[2]=> | |
string(2) "26" | |
[3]=> |
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
<!doctype html> | |
<html> | |
<head> | |
<style> | |
* { margin: 0; padding: 0; } | |
html, body { height: 100%; min-height: 100%; min-width: 100%; } | |
#expanding-width-background { width: 100%; height: 100%; position: absolute; top: 0; z-index: 1; background: red; } | |
#fixed-width { width: 500px; height: 100%; position: relative; z-index: 2; margin: 0 auto; background: blue; } | |
</style> | |
</head> |
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($){ | |
$.fn.$each = function(callback) { | |
var $temp = $([1]); | |
return this.each(function() { | |
$temp[0] = this; | |
return callback.apply($temp, arguments); | |
}); | |
}; |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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() { | |
var StopIterator = this.StopIterator || function() { Error.apply(this, arguments); }; | |
function Range(/*[start, ] stop [, step [, exclusive]]*/) { | |
var args = Array.prototype.slice.call(arguments, 0); | |
if (!(this instanceof Range)) return Range.apply(new Range(1), args); | |
switch(args.length) { |
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
module Metric | |
PREFIXES = { | |
:yotta => 8, | |
:zetta => 7, | |
:exa => 6, | |
:peta => 5, | |
:tera => 4, | |
:giga => 3, | |
:mega => 2, | |
:kilo => 1, |