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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Currency Input</title> | |
<style> | |
body { | |
font-family: OpenSans, 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-size: 32px; | |
} |
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 | |
## http://ubuntuforums.org/showthread.php?t=430312 | |
## The script will attempt to mount any fstab entry with an option | |
## "...,comment=$SELECTED_STRING,..." | |
## Use this to select specific sshfs mounts rather than all of them. | |
SELECTED_STRING="sshfs" | |
# Not for loopback | |
[ "$IFACE" != "lo" ] || exit 0 |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
body { | |
padding: 0; | |
margin: 0; |
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
/** | |
Visibility API polyfill-of-sorts | |
This is wrapped as an AMD module for convenience, and assumes | |
that you are using a 'pubusb' library of some kind. That's | |
all fairly easy to remove (amd and the dependency). | |
*/ | |
define(['pubsub'], function (pubsub) { | |
'use strict'; |
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
/** | |
* Semantically bump a version number, defaults to "minor". | |
* | |
* If your version number includes a prefix, (e.g. "v" in "v0.1.0") | |
* this will be preserved and returned. Any suffix (e.g. "-beta" | |
* in "v0.5.2-beta") will be lost. | |
* | |
* You can provide version numbers in the following formats: | |
* '0.1.2', 'v1.2-patched', '2.3', '3', 4.1, 5 | |
* And you will get back (assuming a minor bump): |
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
'use strict'; | |
/** | |
* This file is mostly pulled from the one generate by Yeoman 1.0 Beta | |
**/ | |
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; |
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
/* | |
See http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
and http://blog.joelambert.co.uk/2011/06/01/a-better-settimeoutsetinterval/ | |
*/ | |
define([ | |
], | |
function () { | |
'use strict'; |
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/bash | |
# works with a file called VERSION in the current directory, | |
# the contents of which should be a semantic version number | |
# such as "1.2.3" | |
# this script will display the current version, automatically | |
# suggest a "minor" version update, and ask for input to use | |
# the suggestion, or a newly entered value. |
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 cssLoad(url, callback) { | |
var promise, | |
resolutions = [], | |
rejections = [], | |
resolved = false, | |
rejected = false, | |
count, id; |
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
/** | |
* Object.spawn for a more terse form of Object.create, | |
* with the super added bonus of giving all overriden | |
* functions a "parent" property which refers back to | |
* thing it was overriding ... like "parent" or "super" | |
* in classical OOP | |
* | |
* @link http://howtonode.org/prototypical-inheritance |