For Go projects that consist of only one package, the following Travis configuration is enough to get started with coveralls.io. You may want to encrypt your $COVERALLS_TOKEN
via Travis encryption keys though.
language: go
go:
- 1.3.1
language: go | |
go: | |
- 1.3.1 | |
- tip | |
matrix: | |
fast_finish: true | |
env: |
For Go projects that consist of only one package, the following Travis configuration is enough to get started with coveralls.io. You may want to encrypt your $COVERALLS_TOKEN
via Travis encryption keys though.
language: go
go:
- 1.3.1
#!/usr/env/bash | |
toggle-turbo() { | |
if kextstat | grep DisableTurboBoost &>/dev/null; then | |
for i in {0..6}; do | |
if sudo kextunload /System/Library/Extensions/DisableTurboBoost.kext &>/dev/null; then | |
echo "# toggle-turbo: DisableTurboBoost unloaded" | |
return 0 | |
fi | |
done |
#!/usr/bin/env bash | |
GO_VER=1.3.1 | |
PULSE_VER=2.6.19 | |
PULSE_HOST=http://pulse | |
# Go | |
apt-get install -y curl git mercurial bison gcc make | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) |
Example usage:
~ $ g++ max.cc -o max
~ $ max 10 20 0 0 2 3 1 # reads input from command line
20
~ $ (echo 10; echo 20; echo 0; echo 0; echo 2) | max -i # or from stdin
20
~ $ max -0.3 -0.5 -0.1 -2.3
-0.1000
package main | |
import ( | |
"fmt" | |
"os" | |
"socollab" | |
) | |
const usage = `usage: socollab COMMAND [ARG...]` |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"regexp" | |
) | |
const usage = "usage: echo TEXT | re2match REGEXP" |
#!/bin/bash | |
# Rafal Jeczalik <[email protected]> | |
# https://gist.github.com/rjeczalik/db886c79049d83f318e2 | |
type curl 1>/dev/null || exit | |
type jq 1>/dev/null || exit | |
die_usage() { | |
if [ ! -z "${*}" ]; then |
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
) | |
func die(v interface{}) { | |
fmt.Fprintln(os.Stderr, v) |
package main | |
import ( | |
"errors" | |
"fmt" | |
"log" | |
"reflect" | |
"strconv" | |
"strings" | |
) |