Skip to content

Instantly share code, notes, and snippets.

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
module.exports = function () {
console.log(this === global);
}
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
@jgautier
jgautier / ES
Created September 26, 2013 20:41
org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource@455681d2>]: Query Failed [Failed to execute main query]]; nested: NullPointerException;
@jgautier
jgautier / gist:4186579
Created December 2, 2012 02:06
Files in folder
//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) {
@jgautier
jgautier / gist:3907807
Created October 17, 2012 20:04 — forked from johngag/gist:3907775
tpl loader
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 03:39
usigned long wtf
#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)
@jgautier
jgautier / gist:2432616
Created April 20, 2012 23:23
Ping w/o Pluse
/* 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
*
*/
// 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 September 22, 2011 18:39
Deferred Creation
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());