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
cd ${0%/*} # cd to directory this script is in | |
clear # clear the console | |
echo "Starting SASS and Coffee..." | |
# start SASS | |
sass --watch sass:css & | |
# start CoffeeScript | |
coffee --watch --compile --output js/ coffee/ |
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
umd = (factory) -> | |
if typeof exports is 'object' | |
module.exports = factory() | |
else if typeof define is 'function' and define.amd | |
define([], factory) | |
else | |
@MODULE_NAME = factory() | |
umd |
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
/* translate */ | |
> translate (x, y) | |
matrix( | |
1, 0, 0, | |
1, x, y | |
) | |
> translate3d (x, y, z) | |
matrix3d( |
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
module.exports = (grunt) -> | |
nameParts = __dirname.split '/' | |
name = nameParts[nameParts.length - 1] | |
config = | |
pkg: 'package.json' | |
coffee: |
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
<!-- non-retina iPhone pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon57.png" sizes="57x57"> | |
<!-- non-retina iPad pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon72.png" sizes="72x72"> | |
<!-- non-retina iPad iOS 7 --> | |
<link rel="apple-touch-icon" href="icon76.png" sizes="76x76"> | |
<!-- retina iPhone pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon114.png" sizes="114x114"> | |
<!-- retina iPhone iOS 7 --> | |
<link rel="apple-touch-icon" href="icon120.png" sizes="120x120"> |
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
module.exports = (grunt) -> | |
nameParts = __dirname.split '/' | |
name = nameParts[nameParts.length - 1] | |
pkg = grunt.file.readJSON 'package.json' | |
deps = grunt.util._.keys pkg.dependencies | |
config = | |
pkg: pkg |
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
getCounts = (identities, callback) -> | |
encoded = '' | |
# encode identities | |
for key, identity of identities | |
encoded += "#{if encoded then '&' else ''}#{key}=#{identity}" | |
xhr = new XMLHttpRequest | |
url = "http://www.contributor.io/api?#{encoded}" |
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
curl "www.contributor.io/api?github=eighttrackmind&npm=bcherny&gem=bcherny" |
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
<!-- | |
favicons (see http://www.jonathantneal.com/blog/understand-the-favicon) | |
--- | |
icon format dimensions documentation | |
---- ------ ---------- ------------- | |
apple-touch-icon PNG 152x152 https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html#//apple_ref/doc/uid/TP40006556-CH27-SW1 | |
icon PNG 96x96 | |
shortcut icon ICO 32x32 | |
msapplication-TileImage PNG 144x144 |
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
# imports | |
from flask import Flask | |
import urllib | |
# instantiate server | |
app = Flask(__name__) | |
# vars | |
url ='http://snapguide.com/api/v1/guide/b995492d5e7943e3b2757a88fe3ef7c6' |
OlderNewer