sudo groupadd docker
sudo chgrp docker /var/run/docker.sock
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
{ | |
"metadata": { | |
"name": "Dotabuff Scrape Heroes" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
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 | |
# Verbose mode | |
set -o verbose | |
# Get the repo to working condition | |
cd ../docker-hello-world-nodejs | |
git checkout -f master | |
git pull |
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 util = require('util'); | |
var port = 4728; | |
var hooks = { | |
helloworld: { | |
key: 'DEADBEEFCAFE', | |
action: function(req, res) { | |
var to_exec = '../deploy-scripts/deploy-helloworld.sh'; | |
require('child_process').exec(to_exec, function(error, stdout, stderr) { |
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
{ | |
"title": "Pet animals", | |
"sections": [ | |
{"seconds": 60, "topic": "Kittens"}, | |
{"seconds": 20, "topic": "Puppies"}, | |
{"seconds": 30, "topic": "Birdies"}, | |
] | |
} |
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
[{"title":"Favorite pets","sections":[{"seconds":60,"topic":"Kittens"},{"seconds":20,"topic":"Puppies"},{"seconds":30,"topic":"Birdies"}]},{"title":"Deadly animals","sections":[{"seconds":29,"topic":"Snakes"},{"seconds":255,"topic":"Sharks"}]},{"title":"Awesome foods","sections":[{"seconds":100,"topic":"Chaat"},{"seconds":601,"topic":"Pizza"},{"seconds":331,"topic":"Salmon"},{"seconds":33,"topic":"Filet mignon"}]}] |
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 newSpeech = { something: 'whatever' }; | |
$.ajax({ | |
type: 'POST', | |
url: 'http://pspk.kesdev.com/speeches', | |
data: JSON.stringify(newSpeech), | |
contentType: 'application/json', | |
dataType: 'json', | |
success: function(data){ | |
console.log(data); | |
}, |
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
{ | |
"metadata": { | |
"name": "Pokemon save parser" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
I hereby claim:
- I am mplewis on github.
- I am mplewis (https://keybase.io/mplewis) on keybase.
- I have a public key whose fingerprint is 89C9 FBD9 092B 0384 FD13 7935 267E 9D9E 7AEF C2B2
To claim this, I am signing this object:
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
;;;;; Bubblesort Points by Ascending Distance from Origin | |
;;;;;; bubblesort-point-list.scm | |
;;;;;;; Matthew Lewis | |
;;;;;;;; Oct 24, 2011 | |
; | |
; This is a bubblesort algorithm written in Scheme. It is designed for the purpose of sorting a list of Cartesian points in the form (x . y), by distance from the origin (0 . 0) of a coordinate plane, in ascending order. | |
; | |
; The main function is run as follows: | |
; (bubblesort-point-list pt-list) | |
; |