This file contains 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 car() { | |
return { | |
start: function() { | |
return "Engine on." | |
}, | |
accelerate: function() { | |
return "Let's go!" | |
} | |
} | |
} |
This file contains 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
arr1 = ['T-GEO-US', 'T-GEO-CA'] | |
arr2 = ['T-GEO-US', 'T-GEO-GA'] | |
targetings = [arr1, arr2] | |
# we want only T-GEO-US to be returned | |
# Current: | |
flatTargetings = [].concat.apply [], targetings | |
# flatTargetings = ['T-GEO-US', 'T-GEO-CA', 'T-GEO-US', 'T-GEO-GA'] | |
geoTargetings = _.uniq flatTargetings |
This file contains 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
findAllWithLineItems: (id, searchCriteria, cb) -> | |
self = @ | |
Step( | |
-> | |
self.findAll searchCriteria, @ | |
return | |
(err, orders) -> | |
return cb err if err |
This file contains 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
source "http://rubygems.org" | |
gem "janky", "~>0.9" | |
gem "pg" | |
gem "thin" |
This file contains 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
<div id=conference-call> | |
<div class="datetime"> | |
<span>Sept</span> | |
<span>25</span> | |
<span>11:30 <strong>AM</strong></span> | |
</div> | |
</div> | |
|
This file contains 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
// original | |
@import "mgmt/sprites/icons/*.png"; | |
$icons: sprite-map("mgmt/sprites/icons/*.png"); | |
.test { | |
background: transparent $icons no-repeat 0 0; | |
} | |
// my test | |
$cc: sprite-map("sprites/icons/credit-cards/*.png") |
This file contains 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
// original | |
@import "mgmt/sprites/icons/*.png"; | |
$icons: sprite-map("mgmt/sprites/icons/*.png"); | |
.test { | |
background: transparent $icons no-repeat 0 0; | |
} | |
// my test |