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
var el = document.getElementById("foo"), | |
transform = window.getComputedStyle(el, null).webkitTransform, | |
matrix = new WebKitCSSMatrix(transform); | |
el.style.webkitTransform = matrix.scale(1); |
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
@for \$${3:i} from ${2:1} through ${1:3} { | |
${4:.item-#{\$${3:i}\}} { | |
$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
@import "compass"; |
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
// Usage: | |
// var ctx = canvas.getContext("2d"); | |
// var data = desaturate(ctx); | |
// ctx.putImageData(data); | |
var desaturate = function (ctx) { | |
var imgData = ctx.getImageData(0, 0, dimension, dimension); | |
for (y = 0; y < dimension; y++) { | |
for (x = 0; x < dimension; x++) { |
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
export ARCHFLAGS='-arch i386 -arch x86_64' |
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
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750) !default; | |
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000) !default; | |
$ease-in: cubic-bezier(0.420, 0.000, 1.000, 1.000) !default; | |
$ease-out: cubic-bezier(0.000, 0.000, 0.580, 1.000) !default; | |
$ease-in-out: cubic-bezier(0.420, 0.000, 0.580, 1.000) !default; | |
$ease-in-quad: cubic-bezier(0.550, 0.085, 0.680, 0.530) !default; | |
$ease-out-quad: cubic-bezier(0.250, 0.460, 0.450, 0.940) !default; | |
$ease-in-out-quad: cubic-bezier(0.455, 0.030, 0.515, 0.955) !default; |
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
// Jordan Dobson's Loading Indicator | |
// Development, design, HTML and CSS by Jordan Dobson | |
// http://jordandobson.tumblr.com/post/905003090/resizable-animated-loading-indicator | |
// Loader width/height | |
$spin-size: 40px !default; | |
// Pick a color and set the alpha value to 1 | |
$spin-color: #fff !default; |
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
// 12 => 12 | |
// 1 => 01 | |
number = ("0" + number).slice(-2); |
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
#!/bin/sh | |
# Check to see if we are on master branch. Stop accidental commits | |
if [ $(git symbolic-ref HEAD 2>/dev/null) == "refs/heads/master" ] | |
then | |
if [ -f i_want_to_commit_to_master ] | |
then | |
rm i_want_to_commit_to_master | |
exit 0 | |
else | |
echo "Cannot commit to master branch" |
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
# enable | |
sudo ipfw pipe 1 config bw 50KBytes/s delay 100ms | |
sudo ipfw add 1 pipe 1 src-port 80 | |
sudo ipfw add 2 pipe 1 dst-port 80 | |
# disable | |
sudo ipfw delete 1 | |
sudo ipfw delete 2 |