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
var casper = require('casper').create({ | |
verbose: true, | |
logLevel: 'debug', | |
pageSettings: { | |
loadImages: false, // The WebPage instance used by Casper will | |
loadPlugins: false, // use these settings | |
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4' | |
} | |
}); | |
var images = []; |
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
fn = () -> | |
for i in [0...10] | |
callMethod i | |
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
// [..] | |
#define COLORGETTER(name, red, green, blue)\ | |
+ (instancetype) name##Color\ | |
{\ | |
static UIColor *color = nil;\ | |
static dispatch_once_t onceToken;\ | |
dispatch_once(&onceToken, ^{\ | |
color = RGB(red, green, blue);\ |
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
#!/bin/sh | |
FROM="/Volumes/ustwo/Client/[..]/images/" | |
TO="./app/assets/images/" | |
TO="${PWD}/${TO}" | |
echo "rsyncing '${FROM}' to '${TO}'" | |
rsync -vur --exclude *. "${FROM}" "${TO}" --delete |
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
.namespace { | |
content: "placeholder"; | |
} | |
.namespace-block { | |
content: "placeholder"; | |
} | |
.namespace-block--element { | |
content: 'placeholder'; | |
} | |
.namespace-block--element__modifier { |
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
web: node server.js |
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
var SERVER_PORT = 5000; | |
// Opens browser window using internal IP on the assigned SERVER_PORT | |
gulp.task('open', function() { | |
var os = require('os'); | |
var spawn = require('child_process').spawn | |
var interfaces = os.networkInterfaces(); | |
var addresses = []; | |
for (k in interfaces) { |
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() { | |
// import dependencies | |
var View = require('famous/core/View'); | |
var Surface = require('famous/core/Surface'); | |
var Modifier = require('famous/core/Modifier'); | |
var StateModifier = require('famous/modifiers/StateModifier'); | |
var Transform = require('famous/core/Transform'); | |
var Timer = require('famous/utilities/Timer'); |
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
$spinner-size = 30px; | |
$spinner-cube-size = ($spinner-size / 3); | |
@keyframes scaleDelay { | |
0%, 70%, 100% { transform:scale3D(1.0, 1.0, 1.0) } | |
35% { transform:scale3D(0.0, 0.0, 1.0) } | |
} | |
.spinner { |
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
$.fn.removeClassStartingWith = function(str) { | |
return this.removeClass(function(i, classNames) { | |
return $.grep(classNames.split(' '), function(className) { | |
return className.indexOf(str) === 0; | |
}).join(' '); | |
}); | |
}; |
OlderNewer