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
#! /bin/sh | |
curl https://gist.githubusercontent.com/gonzaloserrano/f74ca28a9240eeeaadf3095e5add8d73/raw/cf86b29afa1c6b2c213cfdca81d63fa62beea1a6/basket.go > basket.go | |
sh test.sh |
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
497799835 Xcode (8.1) | |
409183694 Keynote (7.0.5) | |
408981434 iMovie (10.1.3) | |
408981381 iPhoto (9.6.1) | |
525912054 WiFi Signal (4.0.5) | |
442160987 Flycut (1.5) | |
928871589 Noizio (1.5) | |
419330170 Moom (3.2.5) | |
409201541 Pages (6.0.5) | |
682658836 GarageBand (10.1.3) |
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
fatal error: unexpected signal during runtime execution | |
fatal error: unexpected signal during runtime execution | |
[signal 0xb code=0x1 addr=0xb01dfacedebac1e pc=0xefeb] | |
runtime stack: | |
runtime.throw(0x3e9400, 0x2a) | |
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90 fp=0xc820731cc8 sp=0xc820731cb0 | |
runtime.sigpanic() | |
/usr/local/Cellar/go/1.6.2/libexec/src/runtime/sigpanic_unix.go:12 +0x5a fp=0xc820731d18 sp=0xc820731cc8 | |
runtime.unlock(0x51e640) |
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
" golang { | |
" vim-go | |
"let g:go_golint_bin = "golint" | |
let g:go_list_type = "quickfix" | |
"let g:syntastic_go_checkers = ['golint', 'govet', 'errcheck'] | |
"let g:syntastic_mode_map = { 'mode': 'active', 'passive_filetypes': ['go'] } | |
" c-@ === c-space :-O | |
au FileType go nmap <c-@> :GoCoverageToggle<CR> | |
"au FileType go nmap <c-b> :GoBuild<CR> | |
autocmd FileType go nmap <c-b> :<C-u>call <SID>build_go_files()<CR> |
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 ( | |
"time" | |
"github.com/socialpoint/sprocket/pkg/dumper" | |
) | |
func main() { | |
c := make(chan struct{}) |
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
(function() | |
-- simulate omniata derived stuff with func calls | |
function f1() | |
return 1485357805 | |
end | |
function f2() | |
return 1485357805 + 3600 | |
end |
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
╰─○ go run main.go | |
FILE_TRANSFER | |
{Unrecognized command} | |
TRANSFER_FILE | |
Source file name:../bigfile | |
Destination file name:bigfile_new | |
65496290 bytes sent | |
{File transfer complete} | |
TRANSFER_FILE | |
Source file name:../bigfile |
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" | |
"math" | |
"os" | |
) | |
func main() { | |
var vf = []float64{ |
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
for i in `grep -r Test *_test.go | grep testing.T | awk '{print $2}' | awk -F '(' '{print $1}' | grep -v t.Run`; do echo $i; go test -v ./... --run $i; done; |
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
(ns foo.core | |
(:require [clj-http.client :as client])) | |
(defn -main | |
"doc" | |
[& args] | |
(lfirst args)) | |
(defn lfirst [list] | |
(first list)) |