Skip to content

Instantly share code, notes, and snippets.

go test ./... -p=1
ok github.com/stripe/stripe-go 0.009s
ok github.com/stripe/stripe-go/account 13.484s
ok github.com/stripe/stripe-go/balance 1.082s
ok github.com/stripe/stripe-go/bankaccount 1.315s
ok github.com/stripe/stripe-go/bitcoinreceiver 3.678s
ok github.com/stripe/stripe-go/bitcointransaction 0.919s
ok github.com/stripe/stripe-go/card 9.035s
ok github.com/stripe/stripe-go/charge 15.264s
2016/04/12 08:37:55 Requesting POST api.stripe.com/v1/charges

Keybase proof

I hereby claim:

  • I am mduvall on github.
  • I am mduvall (https://keybase.io/mduvall) on keybase.
  • I have a public key whose fingerprint is 054F A416 1AAB 622D DA04 FC2F B234 444B 6346 2A97

To claim this, I am signing this object:

# Configuration options
config defaultToCurrentScreen true
config modalEscapeKey esc
config nudgePercentOf screenSize
config resizePercentOf screenSize
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsSpreadSearchWidth 200
config windowHintsSpreadSearchHeight 200
@mduvall
mduvall / gist:11002448
Created April 17, 2014 18:15
consul test failure
go get -d -v ./...
echo | xargs -n1 go get -d
go list ./... | xargs -n1 go test
ok github.com/hashicorp/consul 0.019s
ok github.com/hashicorp/consul/command 1.582s
ok github.com/hashicorp/consul/command/agent 6.709s
2014/04/17 11:14:10 [INFO] raft: Node at 127.0.0.1:15000 [Follower] entering Follower state
2014/04/17 11:14:10 [INFO] serf: EventMemberJoin: Node 15000 127.0.0.1
2014/04/17 11:14:10 [INFO] serf: EventMemberJoin: Node 15000 127.0.0.1
2014/04/17 11:14:10 [INFO] consul: adding server for datacenter: dc1, addr: 127.0.0.1:15000
@mduvall
mduvall / append.go
Created April 6, 2014 05:45
What's the idiomatic way to concat a bunch of slices?
// Assume the following variables...
// r [][]string
// s string
// p []string
//
// Problem: append to r the []string x where x is p[1:] + [s] + p[:1]
// 1. Do crazy appends
r = append(r, append(append(append(make([]string, 0), p[:i]...), s), p[i:]...))
@mduvall
mduvall / reading_frame.go
Created April 2, 2014 04:20
Get possible protein strings from reading frames in DNA
package main
import (
"fasta"
"fmt"
"strings"
)
func main() {
fastaFile := fasta.NewFastaFileWithPath("orf.txt")
@mduvall
mduvall / consensus_string.go
Created March 30, 2014 05:48
Quick example of using FASTA file to compute consensus strings
package main
import (
"fasta"
"fmt"
)
func main() {
fastaFile := fasta.NewFastaFile("cons.txt")
{ type: 'Program',
body:
[ { type: 'VariableDeclaration',
declarations:
[ { type: 'VariableDeclarator',
id: { type: 'Identifier', name: 'obj', range: [ 4, 7 ] },
init:
{ type: 'ObjectExpression',
properties:
[ { type: 'Property',
@mduvall
mduvall / scp_on_save.py
Last active December 19, 2015 12:59
Ghetto SCP on sublime using subprocess
import sublime, sublime_plugin
import os
import tempfile
import subprocess
class SCPOnSave(sublime_plugin.EventListener):
def on_post_save(self, view):
folder_name, file_name = os.path.split(view.file_name())
file_path = folder_name + '/' + file_name
command = 'scp ' + file_path + ' <URL HERE>:' + file_path + ' > /dev/null'