Skip to content

Instantly share code, notes, and snippets.

Avatar

Julian Gautier jgautier

View GitHub Profile
View gist:2751e75c2f2aa5dddbcd
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
View gist:dd6877447c1188f12067
module.exports = function () {
console.log(this === global);
}
View gist:ca5947ca688d7bea9ff1
sas2flash.efi -l log.txt -debug -o -f 2118IT.BIN -b MPTSAS2.ROM
Advanced Mode Set
Adapter Selected is a LSI SAS: SAS2008(B2)
Chip status 0000000000000000:
Executing Operation: Flash Firmware Image
View ES
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@455681d2>]: Query Failed [Failed to execute main query]]; nested: NullPointerException;
View gist:4186579
//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) {
View gist:3907807
tpl = {
templates: {},
loadTemplates: function (names, callback) {
var that = this;
var loadTemplate = function (index) {
var name = names[index];
@jgautier
jgautier / test.cpp
Created May 3, 2012
usigned long wtf
View test.cpp
#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)
View gist:2432616
/* 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
*
*/
View gist:2307155
// 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
@jgautier
jgautier / gist:1235611
Created Sep 22, 2011
Deferred Creation
View gist:1235611
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());
You can’t perform that action at this time.