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 sys = require('sys'); | |
stdin = process.openStdin(); | |
process.addListener('SIGINT', function(){ | |
sys.puts('Received SIGINT'); | |
}); | |
var timeout = function(){ | |
setTimeout(timeout, 50); |
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
/* | |
* This demo program tries to rename 3 groups of files without overwriting any of the files in any other groups | |
* The files are numbered quasi-consecutively tmp1, tmp2, tmp3, tmp11, tmp12, tmp13, etc. | |
* I rename the files by adding 10 to the numeric part of the name | |
* tmp1 cannot be renamed to tmp11 until the original tmp11 has been renamed to tmp21 | |
* | |
*/ | |
var Step = require('ste |
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
/* | |
* This demo program tries to rename 3 groups of files without overwriting any of the files in any other groups | |
* The files are numbered quasi-consecutively tmp1, tmp2, tmp3, tmp11, tmp12, tmp13, etc. | |
* I rename the files by adding 10 to the numeric part of the name | |
* tmp1 cannot be renamed to tmp11 until the original tmp11 has been renamed to tmp21 | |
* | |
*/ | |
var Step = require('step'); | |
var fs = require('fs'); | |
var sys = require('sys'); |
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
/* | |
* This demo program tries to rename 3 groups of files without overwriting any of the files in any other groups | |
* The files are numbered quasi-consecutively tmp1, tmp2, tmp3, tmp11, tmp12, tmp13, etc. | |
* I rename the files by adding 10 to the numeric part of the name | |
* tmp1 cannot be renamed to tmp11 until the original tmp11 has been renamed to tmp21 | |
* | |
*/ | |
var Step = require('step'); | |
var fs = require('fs'); | |
var sys = require('sys'); |
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 sys = require('sys'), | |
spawn = require('child_process').spawn, | |
ls = spawn('ls', ['-lh', '/usr']); | |
ls.stdout.addListener('data', function (data) { | |
sys.print('stdout: ' + data); | |
}); | |
ls.stderr.addListener('data', function (data) { | |
sys.print('stderr: ' + 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
/* | |
* This demo program tries to rename 3 groups of files without overwriting any of the files in any other groups | |
* The files are numbered quasi-consecutively tmp1, tmp2, tmp3, tmp11, tmp12, tmp13, etc. | |
* I rename the files by adding 10 to the numeric part of the name | |
* tmp1 cannot be renamed to tmp11 until the original tmp11 has been renamed to tmp21 | |
* | |
*/ | |
var Step = require('step'); | |
var fs = require('fs'); |
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
45a46 | |
> | |
49a51,54 | |
> if (result !== undefined && result.isCallback === true){ | |
> result = result.apply(next, arguments); | |
> } | |
> | |
106c115 | |
< return function () { | |
--- |
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 sys = require('sys'), | |
spawn = require('child_process').spawn, | |
ls = spawn('ls', ['-lh', '/usr']); | |
ls.stdout.addListener('data', function (data) { | |
sys.print('stdout: ' + data); | |
}); | |
ls.stderr.addListener('data', function (data) { | |
sys.print('stderr: ' + 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
[INFO] Launching Android emulator...one moment | |
[DEBUG] From: /home/hitman/workspace/android-sdk-linux_86/tools/emulator | |
[DEBUG] SDCard: /home/hitman/.titanium/android2.sdcard | |
[DEBUG] AVD ID: 1 | |
[DEBUG] AVD Skin: QVGA-P | |
[DEBUG] SDK: /home/hitman/workspace/android-sdk-linux_86 | |
[INFO] Creating shared 64M SD card for use in Android emulator(s) | |
[DEBUG] /home/hitman/workspace/android-sdk-linux_86/tools/mksdcard 64M /home/hitman/.titanium/android2.sdcard | |
[DEBUG] /home/hitman/workspace/android-sdk-linux_86/tools/emulator -avd titanium_1_QVGA-P -port 5560 -sdcard /home/hitman/.titanium/android2.sdcard -logcat '*:d *' -no-boot-anim -partition-size 128 | |
[TRACE] emulator: emulator window was out of view and was recentred |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>storage test w/ jstorage</title> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script src="http://github.com/andris9/jStorage/raw/master/jstorage.js"></script> | |
</head> | |
<body style="font: 75% Lucida Grande, Trebuchet MS"> | |
<div id="content"></div> |