Skip to content

Instantly share code, notes, and snippets.

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

Gonzalo Serrano gonzaloserrano

☁️
🧑‍💻
View GitHub Profile

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

// CODIGO PARA EL CONTADOR DE MIERDA
var n = 0;
var caja_de_texto = document.getElementById("number");
var today = new Date();
var today_abs = new Date();
(ns foo.core
(:require [clj-http.client :as client]))
(defn -main
"doc"
[& args]
(lfirst args))
(defn lfirst [list]
(first list))
@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;
package main
import (
"fmt"
"math"
"os"
)
func main() {
var vf = []float64{
╰─○ 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
(function()
-- simulate omniata derived stuff with func calls
function f1()
return 1485357805
end
function f2()
return 1485357805 + 3600
end
package main
import (
"time"
"github.com/socialpoint/sprocket/pkg/dumper"
)
func main() {
c := make(chan struct{})
" 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>
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)