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
Github Flow | |
Central project repository: "upstream" | |
Developer GH repository: "origin" | |
Developer local repository: "localhost" | |
Init: | |
Project: | |
Create branches on "upstream" | |
master |
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(){ | |
/* | |
Get a new SVG canvas, with margins and scales. Pass an object as `options` to | |
set values. Defaults: | |
{ | |
size: # Size of SVG. Returned size will be smaller by the size of the margins. | |
width: 960 | |
height: 500 | |
margin: # Margins for the graphic. |
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
{"tape_1":{"label":"Tape 1","family":"tapes","medium":"3/4\" Tape","notes":"","stories":[{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unknown","runtime":"0:00","notes":"","reporter":"Unknown","photographer":"Unknown"},{"slug":"Slug 1","date":"2015-11-07T00:17:32.806Z","format":"Unkn |
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
{ | |
"name": "...", | |
"version": "...", | |
"description": "KTVQ Video Archive Management.", | |
"main": "./dist/index.js", | |
"typings": "./dist/index.d.ts", | |
"repository": { | |
"type": "git", | |
"url": "git@github.com:DavidSouther/rupert.git" | |
}, |
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
polynomial = (coefficients) -> | |
n = 0 | |
coefficients = reverse coefficients | |
(x = n++) -> | |
sum = 0 | |
for c, i in coefficients | |
sum += c * Math.pow(x, i) | |
sum | |
linear = (a = 1, b = 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
mkdir --parents /home/$USER/devel/firefox | |
mkdir --parents /home/$USER/bin | |
pushd /home/$USER/devel/firefox | |
for ff in $(seq 4 13) ; do | |
wget ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$ff.0/linux-$(uname -p)/en-US/firefox-$ff.0.tar.bz2 | |
tar xvf firefox-$ff.0.tar.bz2 | |
mv firefox firefox-$ff | |
/home/$USER/devel/firefox/firefox-$ff/firefox -no-remote -CreateProfile firefox-$ff.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
/** | |
* Calculate the specificity of a selectorList (the sum of the count of | |
* matching attributes). | |
*/ | |
var specificity = function(selectorList) { | |
var spec = 0; | |
goog.array.forEach(selectorList, function(selector){ | |
spec += selector.hierarchy?1:0; | |
spec += selector.type?1:0; | |
spec += selector.id?1: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
var log = debug('draggable'); | |
function Draggable(element, scope){ | |
var apply; | |
if(scope.$apply){ | |
apply = function(fn){ | |
return function(){ | |
var context = this; | |
var args = arguments; |
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 log = debug('draggable'); | |
function Draggable(element, scope){ | |
var apply; | |
if(scope.$apply){ | |
apply = function(fn){ | |
return function(){ | |
var context = this; | |
var args = arguments; |
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 config = { | |
name: 'rupert-auth-example', | |
hostname: 'localhost', | |
stassets: { | |
root: './src/client' | |
}, | |
server: { | |
root: './src/server' | |
}, | |
mongo: { |