Skip to content

Instantly share code, notes, and snippets.

[{"d":1375488000000,"v":17},{"d":1375574400000,"v":9},{"d":1375660800000,"v":38},{"d":1375747200000,"v":52},{"d":1375833600000,"v":23},{"d":1375920000000,"v":54},{"d":1376006400000,"v":24},{"d":1376092800000,"v":12},{"d":1376179200000,"v":7},{"d":1376265600000,"v":26},{"d":1376352000000,"v":50},{"d":1376438400000,"v":44},{"d":1376524800000,"v":40},{"d":1376611200000,"v":34},{"d":1376697600000,"v":16},{"d":1376784000000,"v":9},{"d":1376870400000,"v":32},{"d":1376956800000,"v":45},{"d":1377043200000,"v":24},{"d":1377129600000,"v":38},{"d":1377216000000,"v":47},{"d":1377302400000,"v":29},{"d":1377388800000,"v":9},{"d":1377475200000,"v":31},{"d":1377561600000,"v":35},{"d":1377648000000,"v":37},{"d":1377734400000,"v":33},{"d":1377820800000,"v":14},{"d":1377907200000,"v":12},{"d":1377993600000,"v":13},{"d":1378080000000,"v":9},{"d":1378166400000,"v":42},{"d":1378252800000,"v":36},{"d":1378339200000,"v":43},{"d":1378425600000,"v":31},{"d":1378512000000,"v":11},{"d":1378598400000,"v":11},{"d":1378684800000,"v":44},{"
[{"d":1375488000000,"v":17},{"d":1375574400000,"v":9},{"d":1375660800000,"v":38},{"d":1375747200000,"v":52},{"d":1375833600000,"v":23},{"d":1375920000000,"v":54},{"d":1376006400000,"v":24},{"d":1376092800000,"v":12},{"d":1376179200000,"v":7},{"d":1376265600000,"v":26},{"d":1376352000000,"v":50},{"d":1376438400000,"v":44},{"d":1376524800000,"v":40},{"d":1376611200000,"v":34},{"d":1376697600000,"v":16},{"d":1376784000000,"v":9},{"d":1376870400000,"v":32},{"d":1376956800000,"v":45},{"d":1377043200000,"v":24},{"d":1377129600000,"v":38},{"d":1377216000000,"v":47},{"d":1377302400000,"v":29},{"d":1377388800000,"v":9},{"d":1377475200000,"v":31},{"d":1377561600000,"v":35},{"d":1377648000000,"v":37},{"d":1377734400000,"v":33},{"d":1377820800000,"v":14},{"d":1377907200000,"v":12},{"d":1377993600000,"v":13},{"d":1378080000000,"v":9},{"d":1378166400000,"v":42},{"d":1378252800000,"v":36},{"d":1378339200000,"v":43},{"d":1378425600000,"v":31},{"d":1378512000000,"v":11},{"d":1378598400000,"v":11},{"d":1378684800000,"v":44},{"
[{"d":1375488000000,"v":17},{"d":1375574400000,"v":9},{"d":1375660800000,"v":38},{"d":1375747200000,"v":52},{"d":1375833600000,"v":23},{"d":1375920000000,"v":54},{"d":1376006400000,"v":24},{"d":1376092800000,"v":12},{"d":1376179200000,"v":7},{"d":1376265600000,"v":26},{"d":1376352000000,"v":50},{"d":1376438400000,"v":44},{"d":1376524800000,"v":40},{"d":1376611200000,"v":34},{"d":1376697600000,"v":16},{"d":1376784000000,"v":9},{"d":1376870400000,"v":32},{"d":1376956800000,"v":45},{"d":1377043200000,"v":24},{"d":1377129600000,"v":38},{"d":1377216000000,"v":47},{"d":1377302400000,"v":29},{"d":1377388800000,"v":9},{"d":1377475200000,"v":31},{"d":1377561600000,"v":35},{"d":1377648000000,"v":37},{"d":1377734400000,"v":33},{"d":1377820800000,"v":14},{"d":1377907200000,"v":12},{"d":1377993600000,"v":13},{"d":1378080000000,"v":9},{"d":1378166400000,"v":42},{"d":1378252800000,"v":36},{"d":1378339200000,"v":43},{"d":1378425600000,"v":31},{"d":1378512000000,"v":11},{"d":1378598400000,"v":11},{"d":1378684800000,"v":44},{"
colors: function(){
var colorGenerator = new Correlate.Color.Generator();
var colors = colorGenerator.generateColors();
var obj = {
red:_.map(colorGenerator.generateSimilar(colors[1].hex, 5, true), _.accessor('hex')),
blue:_.map(colorGenerator.generateSimilar(colors[0].hex, 5, true), _.accessor('hex'))
};
console.log(colors[1].hex, _.first(obj.red));
return obj;
},
# from remote
{"01e02acd6de783a589dded3b84964a15"=>
{"cumulative"=>false, "name"=>"First Name", "sheet"=>"Staff"},
"0f523b60dca7a1f369aa90c27c1c7073"=>
{"cumulative"=>false, "name"=>"Cell Phone", "sheet"=>"Staff"},
"1314344ac94db928467fb8e9946706fd"=>
{"cumulative"=>true, "name"=>"Party ID – DEM'10", "sheet"=>"Polling"},
"1561b7d693e18c39490ad9cf4a38dc1c"=>
{"cumulative"=>true, "name"=>"Image – Fav – DEM", "sheet"=>"Polling"},
"175fab7a6cf4d497220ebc2d6bec9147"=>
Take Out
910 mm
--------------------------------
PETER
Chk 9590 Gst 0
--------------------------------
Take-out
2 Cola
<?php
#$result = shell_exec("C:\cygwin\bin\bash.exe --login -c '/cygdrive/c/cygwin/bin/convert.exe --version'");
$result = shell_exec("cp virtual_receipt.txt virtual_receipt_use.txt");
$file = 'micros/virtual_receipt.txt';
$lockfile = 'micros/virtual_receipt_lock.txt';
if (!copy($file, $lockfile)) {
echo "failed to copy $file...\n";
}
Take Out
910 mm
--------------------------------
Chk 9592 Gst 0
--------------------------------
Take-out
5 Sausage Pizza
Take Out
910 mm
--------------------------------
Chk 9592 Gst 0
--------------------------------
Take-out
5 Sausage Pizza
Nerd-Machine:strategy jdkealy$ npm start
> strategy@0.0.1 start /Users/jdkealy/srv/strategy
> forever --watch --watchDirectory="$PWD/app" -p "$PWD" --sourceDir="$PWD" --pidFile="server.pid" --append -l "log/forever.log" -o "log/out.log" -e "log/err.log" "main.js"
warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
stream.js:94
throw er; // Unhandled stream error in pipe.