Skip to content

Instantly share code, notes, and snippets.

View bcomnes's full-sized avatar
👽

Bret Comnes bcomnes

👽
View GitHub Profile
@bcomnes
bcomnes / build.log
Created February 10, 2014 04:06
build.log
/tmp/python-build.20140209195817.24052 ~
Downloading Python-2.7.6.tgz...
HTTP/1.1 200 OK
Server: GitHub.com
Content-Type: application/octet-stream
Last-Modified: Tue, 19 Nov 2013 10:03:58 GMT
Expires: Mon, 10 Feb 2014 03:13:31 GMT
Cache-Control: max-age=600
Content-Length: 14725931
Accept-Ranges: bytes
@bcomnes
bcomnes / gist:23e00814d05b1d8d2b53
Created February 10, 2014 05:19
python2.7 virtualenv error
bcomnes:~:1002 > virtualenv -p /vol/apps/user/python/python2.7.6/bin/python2.7 twoseventest
Running virtualenv with interpreter /vol/apps/user/python/python2.7.6/bin/python2.7
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/virtualenv.py", line 8, in <module>
import base64
File "/vol/apps/user/python/python2.7.6/lib/python2.7/base64.py", line 9, in <module>
import struct
File "/vol/apps/user/python/python2.7.6/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: No module named _struct
@bcomnes
bcomnes / index.js
Created March 5, 2014 23:50
node sudo hardware code
devices = {
devArduino: {
port: '/dev/tty.usbserial-A800ewsy'
function: 'stage'
},
stageArduino: {
port: '/dev/tty.usbmodem3d11',
function: 'stage'
},
scopeSerial: {

Keybase proof

I hereby claim:

  • I am bcomnes on github.
  • I am bret (https://keybase.io/bret) on keybase.
  • I have a public key whose fingerprint is CF24 7B7A ABD0 67AE 3DCC 320A 0BCF 329D 5622 03D9

To claim this, I am signing this object:

var serialport = require('serialport');
var SerialPort = serialport.SerialPort;
var replify = require('replify');
var serialPort = new SerialPort('/dev/cu.PL2303-0000101D', {
baudrate: 2400,
parser: serialport.parsers.readline('\r')
});
serialPort.on('open', function () {
> serialPort.list(function (err, ports) { console.log(ports) });
undefined
> [ { comName: 'COM5',
manufacturer: 'Gigaware',
serialNumber: '',
pnpId: 'USB\\VID_05AD&PID_0FBA\\5&C663B7B&0&1',
locationId: '',
vendorId: '',
productId: '' } ]
@bcomnes
bcomnes / pdx.devweek.org
Last active August 29, 2015 14:03
CFP PDX dev week
@bcomnes
bcomnes / index.html
Created July 14, 2014 02:39
Select styles with CSS only - JS Bin http://jsbin.com/juvixufu/168/edit
<html>
<head>
<title>Select styles with CSS only</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #fff;
font-family: helvetica, sans-serif;
margin: 4% 10%
}
@bcomnes
bcomnes / example.sh
Created July 22, 2014 17:44
Trying to write tests for xylib
arc-mac-04:samples bcomnes$ echo "20.0 490.5" > test.txt
arc-mac-04:samples bcomnes$ cat test.txt
20.0 490.5
arc-mac-04:samples bcomnes$ xyconv -g test.txt
text: ascii text
@bcomnes
bcomnes / hw3.lhs
Created August 14, 2014 21:06
Just just haskell Ted gave to me
------------------------------------------------------------------------
CS457/557 Functional Languages, Winter 2014 Homework 3
------------------------------------------------------------------------
> import Control.Applicative((<$>),(<*>))
> import Data.List(intersperse, transpose)
> import Test.QuickCheck(quickCheck)
> import Test.QuickCheck.Arbitrary(Arbitrary, arbitrary)
> import Test.QuickCheck.Gen(choose, vectorOf)