Skip to content

Instantly share code, notes, and snippets.

View codehero's full-sized avatar
🎯
pig

David Bender codehero

🎯
pig
View GitHub Profile
@codehero
codehero / gist:fdf059db355073777342
Created September 4, 2015 13:20
Test for tcdrain bug in ftdi_sio
#include <termios.h>
#include <string.h>
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
/* Tests if tcdrain is actually blocking until all bytes are sent over the wire.
0 info it worked if it ends with ok
1 verbose cli [ 'c:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'c:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli './node-libcurl/' ]
2 info using npm@1.4.3
3 info using node@v0.10.26
4 verbose cache add [ './node-libcurl/', null ]
5 verbose cache add name=undefined spec="./node-libcurl/" args=["./node-libcurl/",null]
6 verbose parsed url { protocol: null,
@codehero
codehero / gist:8274288
Created January 5, 2014 21:40
badly behaving jscad file
function getParameterDefinitions(){
return [
{
"name" : "showBuildPlate"
,"type" : "choice"
,"values" : [
"none"
,"ToM"
]
,"initial" : "none"