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_modules/fibers/src/coroutine.cc-0 2014-03-01 22:05:44.000000000 +0100 | |
+++ ./node_modules/fibers/src/coroutine.cc 2014-03-01 22:05:55.000000000 +0100 | |
@@ -40,7 +40,7 @@ | |
v8::Locker locker(isolate); | |
assert(isolate != NULL); | |
floor_thread_key = 0x7777; | |
- for (pthread_key_t ii = coro_thread_key - 1; ii >= (coro_thread_key >= 20 ? coro_thread_key - 20 : 0); --ii) { | |
+ for (pthread_key_t ii = coro_thread_key - 1; ii >= (coro_thread_key >= 30 ? coro_thread_key - 30 : 0); --ii) { | |
if (pthread_getspecific(ii) == isolate) { | |
floor_thread_key = ii; |
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
unalias l 2> /dev/null || true | |
function l() { | |
if [[ $# = 0 ]] ; then | |
arg=. | |
else | |
arg=$1 | |
fi | |
if [[ -d $arg ]] ; then | |
ls -al "$arg" |
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 -e 'console.log(process.argv.splice(1))' -- "`echo "1 2"`" |
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
// http://getbootstrap.com/examples/navbar-static-top/ | |
navbar static | |
brand "Project name" (to "#") | |
item "Link" (to "#") active | |
item "Link" (to "#") | |
item "Link" (to "#") | |
item "Dropdown" | |
item "Action" (to "#") |
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
gulp = require 'gulp' | |
gutil = require 'gulp-util' | |
mocha = require 'gulp-mocha' | |
taskNameStartsWithMetaDash = false | |
for arg in process.argv[2..] | |
if arg.substr(0, 5) == 'meta-' | |
taskNameStartsWithMetaDash = true | |
break |
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 | |
git branch swap-before && | |
git reset head~2 && | |
git add -A . && git c -C swap-before && | |
git reset --hard swap-before~ && | |
git reset head@{1} && | |
git add -A . && git c -C swap-before~ |
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
#!/usr/bin/env bash | |
if [[ $# -eq 0 ]] ; then | |
subl -w . & | |
else | |
subl -w "$@" & | |
fi | |
sleep 1 | |
kill $! |
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
#!/usr/bin/env bash | |
# Written by Felix Rabe (rabe.io). | |
# Hereby placed in the Public Domain. Use however you wish. | |
if [[ $# -eq 0 ]] ; then | |
echo "This script is for provisioning a Cyon Geekserver that has" | |
echo "been set up using Ubuntu 14.04. ONLY USE FOR A NEW SERVER!" | |
echo | |
echo "Usage example:" |
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
#!/usr/bin/env coffee | |
tiptip = require 'tiptip' | |
chalk = require 'chalk' | |
contrastOk = yes | |
b = chalk.bold | |
g = chalk.grey |
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
result(fn1(in1, in2, in3), fn2(in4, in5)) | |
result (fn1 in1 in2 in3) (fn2 in4 in5) | |
result | |
fn1 in1 in2 in3 | |
fn2 in4 in5 | |
result | |
fn1 |
OlderNewer