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
Hangs: | |
$ cat > builder.sh | |
apt-get update | |
apt-get install -y wget | |
wget --help | |
$ docker run -i -t base /bin/bash < builder.sh | |
Doesn't hang: |
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
{ | |
"prepare":"GOROOT=/opt/node/go GOBIN=/opt/node/bin/go make", | |
"test":"GOROOT=/opt/node/go GOBIN=/opt/node/bin/go make test", | |
"deploy":"echo a custom deploy command executed on test success" | |
} |
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 mailer = require('nodemailer') | |
var Hapi = require('hapi') | |
var util = require('util') | |
var template = require('swig') | |
var path = require('path') | |
var PORT = process.env.PORT || 8080 | |
var server = new Hapi.Server(PORT) | |
template.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
<?php | |
// Get this at your MongoLab.com user page | |
$MONGOLAB_API_KEY = 'XXXXXXXXXXXXXX'; | |
$DB = 'mydb'; | |
$COLLECTION = 'mycollection'; | |
$name = $_POST['fullName']; | |
$email = $_POST['email']; | |
$phone = $_POST['phoneNumber']; | |
$src = $_POST['src']; |
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
// | |
// Node Child Process Spawn() race bug | |
// | |
// Triggerable on: | |
// Node 0.8.11 / OS X 10.8.2 / MBP 13" 2011 (4 cores) | |
// Doesn't seem to happen on: | |
// Node 0.8.11 / Ubuntu 10.04 LTS / EC2 Medium (1 core) | |
var assert = require('assert') |
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 assert = require('assert') | |
var spawn = require('child_process').spawn | |
function runTest(cb) { | |
var proc = spawn("/usr/bin/env", [], {env:{foo:"bar"}}) | |
proc.stdoutBuf = "" | |
proc.stderrBuf = "" | |
proc.stdmergedBuf = "" |
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
// Detection predicate for Python language & known frameworks | |
{ | |
// "exists" property can be a glob as supported by node-glob | |
// https://github.com/isaacs/node-glob | |
// | |
// "grep" property is a JavaScript regular expression as described at | |
// https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/RegExp | |
// grep looks for the regular expression inside of the | |
// Array predicates have an implicit OR |
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
/* | |
* parse_link_header() | |
* | |
* Parse the Github Link HTTP header used for pageination | |
* http://developer.github.com/v3/#pagination | |
*/ | |
function parse_link_header(header) { | |
if (header.length == 0) { | |
throw new Error("input must not be of zero length"); | |
} |
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
char dayw[] | |
{ | |
" S M Tu W Th F S" | |
}; | |
char *smon[] | |
{ | |
"Jan", "Feb", "Mar", "Apr", | |
"May", "Jun", "Jul", "Aug", | |
"Sep", "Oct", "Nov", "Dec", | |
}; |
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
{ "test_results": | |
{ "deploy_exitcode": null, | |
"finish_time": "2012-06-29T00:19:26.622Z", | |
"repo_url": "https://github.com/niallo/gh-markdown-cli", | |
"start_time": "2012-06-29T00:19:04.538Z", | |
"github_commit_id": "f84bda271dc884fd6b2c0badc001f8fefcacdc9f", | |
"test_exitcode": 0 | |
} | |
} |