Skip to content

Instantly share code, notes, and snippets.

View gonzaloserrano's full-sized avatar
☁️
🧑‍💻

Gonzalo Serrano gonzaloserrano

☁️
🧑‍💻
View GitHub Profile
#! /bin/sh
curl https://gist.githubusercontent.com/gonzaloserrano/f74ca28a9240eeeaadf3095e5add8d73/raw/cf86b29afa1c6b2c213cfdca81d63fa62beea1a6/basket.go > basket.go
sh test.sh
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)
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)
" 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>
package main
import (
"time"
"github.com/socialpoint/sprocket/pkg/dumper"
)
func main() {
c := make(chan struct{})
(function()
-- simulate omniata derived stuff with func calls
function f1()
return 1485357805
end
function f2()
return 1485357805 + 3600
end
╰─○ 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
package main
import (
"fmt"
"math"
"os"
)
func main() {
var vf = []float64{
@gonzaloserrano
gonzaloserrano / gist:0504a7ef62995a115590e5a5482f24a8
Last active July 23, 2017 22:20
Execute go tests in a different process each
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;
(ns foo.core
(:require [clj-http.client :as client]))
(defn -main
"doc"
[& args]
(lfirst args))
(defn lfirst [list]
(first list))