Skip to content

Instantly share code, notes, and snippets.

Avatar
🏜️
🚙🛸🌵🛰

Bret bcomnes

🏜️
🚙🛸🌵🛰
View GitHub Profile
View 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 Feb 10, 2014
python2.7 virtualenv error
View gist:23e00814d05b1d8d2b53
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 Mar 5, 2014
node sudo hardware code
View index.js
devices = {
devArduino: {
port: '/dev/tty.usbserial-A800ewsy'
function: 'stage'
},
stageArduino: {
port: '/dev/tty.usbmodem3d11',
function: 'stage'
},
scopeSerial: {
View keybase.md

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:

View gist:5cbf5d5c5454362e9020
> 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: '' } ]
View serialTest
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 () {
@bcomnes
bcomnes / pdx.devweek.org
Last active Aug 29, 2015
CFP PDX dev week
View pdx.devweek.org
@bcomnes
bcomnes / index.html
Created Jul 14, 2014
Select styles with CSS only - JS Bin http://jsbin.com/juvixufu/168/edit
View index.html
<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 Jul 22, 2014
Trying to write tests for xylib
View example.sh
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 Aug 14, 2014
Just just haskell Ted gave to me
View hw3.lhs
------------------------------------------------------------------------
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)