Skip to content

Instantly share code, notes, and snippets.

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@drewolson
drewolson / reflection.go
Last active November 20, 2023 09:39
Golang Reflection Example
package main
import (
"fmt"
"reflect"
)
type Foo struct {
FirstName string `tag_name:"tag 1"`
LastName string `tag_name:"tag 2"`
@brantfaircloth
brantfaircloth / convert-bcl-to-fastq.rst
Created July 16, 2012 23:44
Convert BCL files to fastq

Install dependencies and Casava

The following assumes you are converting BCL files containing PE100 reads with a 10 nt index read. You can allow Casava to demultiplex for you or do it on your own, later. You can adjust values below if you are doing something different (e.g. shorter reads, longer indexes) but be careful.

  • You need a pretty beefy machine. Illumina recommends something with multiple cores and 48 GB RAM, running Centos 5. Centos 6 also works just fine. See their recommendations here:
GID_TABLE = {
'od6': 0,
'od7': 1,
'od4': 2,
'od5': 3,
'oda': 4,
'odb': 5,
'od8': 6,
'od9': 7,
'ocy': 8,
@stickwithjosh
stickwithjosh / gist:2869162
Created June 4, 2012 15:51
New site setup instructions
1. Purchase domain (hover.com)
2. Heroku app for website
* copy existing site
* Make git repo run
$ git init .
$ git add .
$ git commit -a -m "intial commit"
* $ heroku apps:create DOMAIN (https://devcenter.heroku.com/articles/creating-apps)
* $ git push heroku master
* $ heroku domains:add www.DOMAIN.com
@bobbydavid
bobbydavid / app.js
Created May 8, 2012 23:46
socket.io in Express 3
var express = require('express')
, http = require('http')
, connect = require('connect')
, io = require('socket.io');
var app = express();
/* NOTE: We'll need to refer to the sessionStore container later. To
* accomplish this, we'll create our own and pass it to Express
* rather than letting it create its own. */
var sessionStore = new connect.session.MemoryStore();
@hiremaga
hiremaga / Output
Created March 2, 2010 22:07
Signal Handling: Ruby vs JRuby
orange:~ $ ruby signal_handling.rb
pid 81402 is sleeping...
^CRuby ensure was run!
Ruby at_exit was run!
signal_handling.rb:34:in `sleep': Interrupt
from signal_handling.rb:34
orange:~ $ jruby signal_handling.rb
pid 81431 is sleeping...
^CJava shutdown hook was run!