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
source "http://rubygems.org" | |
gem "janky", "~>0.9" | |
gem "pg" | |
gem "thin" |
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
$.get "/path", (data) => | |
if data.length > 0 | |
items = [] | |
done = 0 | |
for d in data | |
done++ | |
require ["#{d.file}.html"], (tpl) -> |
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 site links */ | |
a:before { | |
vertical-align:-2px; | |
margin-right:5px; | |
width: 16px; | |
height: 16px; | |
} | |
a[href^="http://twitter.com"]:before { |
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
<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 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
<div id="mustacheContainer"></div> |
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 in_ip_range($lower, $upper, $target) { | |
// is the target IP in the given lower and upper bounds of a range? | |
// if lower = 4.4.4.4 and upper is 8.8.8.8 and target is 6.6.6.6 => yes | |
return (ip2long($lower) <= ip2long($target) && ip2long($upper) >= ip2long($target)); | |
} | |
function is_us_based_aws($url) { | |
$h = parse_url($url, PHP_URL_HOST); | |
$ip = gethostbyname($h); | |
$ranges = array( |
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
/* line 186, sprites/icons/**/*.png */ |
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
// 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 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
// original | |
@import "mgmt/sprites/icons/*.png"; | |
$icons: sprite-map("mgmt/sprites/icons/*.png"); | |
.test { | |
background: transparent $icons no-repeat 0 0; | |
} | |
// my test |
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
$('input:visible:first').focus().keydown(function(e) { | |
if (e.keyCode === 8 && !this.value) { | |
history.back(); | |
} | |
}); |