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 ( | |
| "fmt" | |
| "github.com/petar/GoLLRB/llrb" | |
| ) | |
| func isBalanced(t *llrb.Tree) bool { | |
| if t == nil { | |
| return true |
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
| #include <stdio.h> | |
| #include "sam.h" | |
| // callback for bam_fetch() | |
| static int fetch_func(const bam1_t *b, void *data) | |
| { | |
| printf("%s %d %d %d\n", b->data, b->core.tid, b->core.pos, b->core.l_qseq); | |
| return 0; | |
| } |
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
| // Copyright ©2012 Dan Kortschak <dan.kortschak@adelaide.edu.au> | |
| package feat | |
| type Conformationer interface { | |
| Conformation() Conformation | |
| } | |
| type Conformation int8 |
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
| // Copyright ©2012 Dan Kortschak <dan.kortschak@adelaide.edu.au> | |
| package boom | |
| // http://samtools.sourceforge.net/samtools/sam/index.html | |
| /* | |
| #cgo LDFLAGS: -L/usr/local/src/samtools_latest -lbam -lz | |
| #include "sam.h" | |
| static int fileType(samfile_t *fp) { return fp->type; } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ( | |
| "crypto/sha256" | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "time" | |
| ) |
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 ( | |
| "fmt" | |
| "testing" | |
| ) | |
| // An offset slice seems to be the only way to implement the C idiom to | |
| // an offset (by o) a view (v) on an array (a): | |
| // int *v, o; |
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
| //Use morass when you don't want your data to be a quagmire. | |
| // | |
| //Sort data larger than can fit in memory. | |
| // | |
| // morass məˈras/ | |
| // 1. An area of muddy or boggy ground. | |
| // 2. A complicated or confused situation. | |
| package morass | |
| // Copyright ©2011 Dan Kortschak <dan.kortschak@adelaide.edu.au> |
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 ( | |
| "bufio" | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/tls" | |
| "crypto/x509" | |
| "crypto/x509/pkix" | |
| "encoding/pem" |
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 ( | |
| "fmt" | |
| "reflect" | |
| "runtime" | |
| "unsafe" | |
| ) | |
| type commonType struct { |