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 fs = require('fs'), | |
jspipe = require('jspipe'), | |
Pipe = jspipe.Pipe, | |
job = jspipe.job, | |
filenames = ['file1.txt', 'file2.txt', 'file3.txt']; | |
function denode(fn, args) { | |
var pipe = new Pipe(), | |
newArgs = args instanceof Array ? args : [args]; |
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
;;; json-reformat --- Reformat tool for JSON | |
;; Author: Wataru MIYAGUNI <gonngo@gmail.com> | |
;; Keywords: json | |
;; Copyright (c) 2012 Wataru MIYAGUNI | |
;; | |
;; MIT License | |
;; | |
;; Permission is hereby granted, free of charge, to any person obtaining |
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
<html> | |
<body> | |
<div id="person1"></div> | |
<div id="person2"></div> | |
</body> | |
<script> | |
var util = {}; |
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
(require 'elnode) | |
(elnode-start | |
(elnode-webserver-handler-maker "~/projects") :port 8001 :host "localhost") |
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 | |
# A (b)ash script replacement for ps showing threads and other helpful stuff. | |
# Especially useful for Busybox based systems which has a very simple ps applet | |
# | |
# License: GPLv2 | |
# Copyright 2009 Chris Simmonds, 2net Ltd | |
# chris@2net.co.uk | |
show_details () |
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
theBalls.invoke('tick'); |
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
for (var i = 0, l = boxes.length; i < l; i++) { | |
boxes[i].tick(); | |
} |
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
return 'top:%@px; left:%@px; background:rgb(0,0,%@);'.fmt(this.get('top'), | |
this.get('left'), | |
this.get('color')); | |
}.property('top', 'left', 'color'), |
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
style: function() { | |
return 'top: ' + this.get('top') + 'px; left: ' + this.get('left') +'px; background: rgb(0,0,' + this.get('color') + ');'; | |
}.property('top', 'left', 'color') |
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 count = this.incrementProperty('count'); |