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
//Required modules | |
var fs = require('fs'), | |
fspath = require('path'); | |
//hardcoded for testing | |
var collection = "/Users/julian/Documents/Test"; | |
var folders = 0; | |
var file_paths = []; | |
function traverse(path, callback) { |
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
juliangautier:SILK_SDK_SRC_FIX_v1.0.9 juliangautier$ emcc libSKP_SILK_SDK.a -o silk.js | |
DEBUG:root:PYTHON not defined in /Users/juliangautier/.emscripten, using "/usr/local/opt/python/bin/python2.7" | |
DEBUG:root:JAVA not defined in /Users/juliangautier/.emscripten, using "java" | |
DEBUG:root:compiling to bitcode | |
DEBUG:root:emcc step "parse arguments and setup" took 0.00 seconds | |
DEBUG:root:using library file: libSKP_SILK_SDK.a | |
DEBUG:root:emcc step "bitcodeize inputs" took 0.00 seconds | |
DEBUG:root:emcc step "process inputs" took 0.00 seconds | |
DEBUG:root:will generate JavaScript | |
DEBUG:root:including libc.bc |
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
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@455681d2>]: Query Failed [Failed to execute main query]]; nested: NullPointerException; |
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
tpl = { | |
templates: {}, | |
loadTemplates: function (names, callback) { | |
var that = this; | |
var loadTemplate = function (index) { | |
var name = names[index]; |
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
#include <stdio.h> | |
int | |
main () | |
{ | |
char durationArray[4]; | |
char timeoutArray[4] = { | |
(0 & 0x7F) | ((0 & 0x7F) << 7) | |
,(15 & 0x7F) | ((0 & 0x7F) << 7) | |
,(66 & 0x7F) | ((0 & 0x7F) << 7) |
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
/* Ultrasound Sensor | |
*------------------ | |
* | |
* Reads values (00014-01199) from an ultrasound sensor (3m sensor) | |
* and writes the values to the serialport. | |
* | |
* http://www.xlab.se | http://www.0j0.org | |
* copyleft 2005 Mackie for XLAB | DojoDave for DojoCorp | |
* | |
*/ |
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
// data structure for node | |
var Node = function(char,isLastChar){ | |
this.char = char; | |
this.isLastChar = isLastChar; | |
this.children = {}; | |
}; | |
//adds a word to a node/tree | |
var addWord = function(tree,word){ | |
var chars = word.split(''); | |
//when adding a node to a tree, the currentNode starts as the tree |
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 deferredTask = function(){ | |
var dfd = $.Deferred(); | |
someAsyncCall(function(data){ | |
dfd.resolve(data); | |
}); | |
return dfd.promise(); | |
}; | |
var deferredTasks = []; | |
for(var i = 0; i < 3; i++){ | |
deferredTasks.push(deferredTask()); |
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
// On Arduino Uno 2.2 | |
// Using Examples > Firmata > StandardFirmata_2_2_forUNO_0_3 | |
var firmata = require("./firmata/lib/firmata"); | |
var board = new firmata.Board("/dev/tty.usbmodem621",function(){ | |
//code for board needs to go here | |
console.log(board); // logs board object, board.pins is empty | |
board.digitalWrite(2, 1); // generates error can't write value to undefined | |
}); |
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
function letX(){ | |
var x = 0; | |
if(true){ | |
let x = 1; | |
//1 | |
console.log(x); | |
} | |
//0 | |
console.log(x); | |
} |
NewerOlder