This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fanOut takes an input channel and sends each output to one or more | |
// output channels. If a non-zero timeout is supplied, the | |
func fanOut(input chan []byte, outputs []chan []byte, exit chan bool, timeout time.Duration) { | |
if len(outputs) == 0 { | |
log.Println("zero outputs") | |
return | |
} | |
defer log.Println("cleaning up fanOut") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"log" | |
"sync" | |
"time" | |
) | |
// fanIn takes zero or more channels and merges the received data to a | |
// single output channel. For efficiency, the output channel should be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace pre-Django 1.4 unquoted url syntax {% url ... %} (on Mac OS X) | |
egrep -l -r '{% url [^" ]+' . | grep html$ | xargs sed -E -i '' 's/{% url ([^" ]+)/{% url "\1"/g' |
Markdown version of Seth Godin's ShipIt Journal
You may have already figured out these reasons for not shipping:
- You might not know enough...
- You might not see clearly enough...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blinded Id 59 | |
DNA Sample ID 19 | |
Gender 15 | |
Exome Availability 14 | |
Fyler Diagnosis 11 | |
Genotyping Availability 9 | |
Subject Age 9 | |
DNA Sample Type 8 | |
Tissue Sample ID 7 | |
Working Group 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blinded Id 59 | |
DNA Sample ID 19 | |
Gender 15 | |
Exome Availability 14 | |
Fyler Diagnosis 11 | |
Genotyping Availability 9 | |
Subject Age 9 | |
DNA Sample Type 8 | |
Tissue Sample ID 7 | |
Working Group 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Blinded Id 59 | |
DNA Sample ID 19 | |
Gender 15 | |
Exome Availability 14 | |
Fyler Diagnosis 11 | |
Genotyping Availability 9 | |
Subject Age 9 | |
DNA Sample Type 8 | |
Tissue Sample ID 7 | |
Working Group 7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1-00031 2 | |
rna 1 | |
1-00696 1 | |
diagno 1 | |
fas 1 | |
f 3 | |
age 1 | |
pheno 1 | |
jacob 1 | |
fyl 3 |
Managment commands are assumed to be unique across all apps in a Django project. This can lead to long or obscure command names in attempt to namespace those commands.
Subcommander acts as a proxy command giving the real commands a namespace. The subcommander module can be named after the app name or some derivation. The structure looks as follows:
myapp/
management/
commands/