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
gource -1920x1080 -o - | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset slow -crf 1 -threads 0 -bf 0 gource.mp4 |
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
""" | |
usage: | |
mytool [options] | |
options: | |
--foo-bar=PARAM1,PARAM2,... params to do stuff with | |
[default: key1.value1,key1.value2,key2.value2] | |
""" | |
from docopt import docopt |
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 selectedCheckboxes = 'input[type=checkbox]:checked'; |
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
import csv | |
collectionName = 'vertices' | |
gtfsStopTimes = 'gtfs/stop_times.txt' | |
edgesFile = 'graph/edges.json' | |
def readAsJson(filePath): | |
i = open(filePath, 'r') |
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
YUI().use("node", function (Y) { | |
'use strict'; | |
var iframeId = "#masterDataFrame"; | |
var frame = Y.one(iframeId); | |
var win = Y.Node.getDOMNode(frame.get('contentWindow')); | |
var doc = win.document; | |
YUI({ win: win, doc: doc }).use('node', function (innerY) { | |
// Do it... |
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 toCsv = function(list){ | |
var emptyString = ''; | |
return list + emptyString; | |
}; |
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
YUI.add('module-name', function (Y) { | |
'use strict'; | |
var init = function(){ | |
// Do Something... | |
}; | |
Y.ModuleName = { | |
init: init | |
}; |
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
# Log in and execute | |
wget -O - https://www.arangodb.org/repositories/1.3.2/Uberspace/uberspace-arangodb.sh | sh | |
# Copy sh-Scripts to ~/bin | |
cp arangod.sh ~/bin | |
cp arangosh.sh ~/bin | |
# Setup daemontools | |
test -d ~/service || uberspace-setup-svscan |
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
import csv | |
import yaml | |
i = open('input.csv', 'r') | |
reader = csv.DictReader(i) | |
data = yaml.safe_dump([row for row in reader], canonical=False, | |
encoding='utf-8', allow_unicode=True, | |
default_flow_style=False) |
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": "Flensburg, Stadt", | |
"area": "56.74", | |
"inhabitants": { | |
"male": "44028", | |
"number": "89357", | |
"female": "45329", | |
"density": "1575" | |
}, |
NewerOlder