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
{} |
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
<!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
'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
{ | |
"black":"39/40/34", | |
"red":"249/38/114", | |
"green":"166/226/46", | |
"yellow":"244/191/117", | |
"blue":"102/217/239", | |
"magenta":"174/129/255", | |
"cyan":"161/239/228", | |
"white":"248/248/242", | |
"brightBlack":"117/113/94", |
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
// do once per "row" (going down) | |
for ( let y=0; y<boxesDown; y++ ) { | |
// do once per "column" (going across) | |
for ( let x=0; x<boxesAcross; x++ ) { | |
// rx = top-left x coord of current square | |
let rx = x * size; | |
// ry = top-left y coord of current square | |
let ry = y * size; | |
// cx = centre point x coord of current square |
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 | |
# Authored by Pete Otaqui <pete@otaqui.com> | |
# | |
# Core code taken from StackOverflow | |
# http://stackoverflow.com/questions/372506/how-can-i-search-git-branches-for-a-file-or-directory | |
# | |
# The author has placed this work in the | |
# Public Domain, thereby relinquishing all | |
# copyrights. Everyone is free to use, modify, |