Skip to content

Instantly share code, notes, and snippets.

View fd0's full-sized avatar

Alexander Neumann fd0

View GitHub Profile

Inhalt:

  • Editor/IDE, gofmt, golint
  • main.go, hello world
  • GOPATH
  • main/library
  • Sprachkonstrukte, if/switch/var/const/go struct/type, slices/arrays, maps/channel
  • chat server?
  • go test, coverage
  • profiling
  • serialisierung (xml, json)
@fd0
fd0 / xtime
Created January 25, 2018 21:23
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
"time"
"unsafe"
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
)
package main
import (
"fmt"
"os"
"os/exec"
"os/signal"
"syscall"
)
// an example to create a new mapping `ctrl-y`
//mapkey('<Ctrl-y>', 'Show me the money', function() {
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
//});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
//map('?', 'u');
// an example to remove mapkey `Ctrl-i`
//unmap('<Ctrl-i>');
@fd0
fd0 / PKGBUILD
Created December 20, 2017 17:22
# Maintainer: Egor Kovetskiy <e.kovetskiy@office.ngs.ru>
pkgname=gtm
pkgver=20171203.337_6ee3a02
pkgrel=1
pkgdesc="git time metrics"
arch=('i686' 'x86_64')
license=('GPL')
depends=(
)
makedepends=(
@fd0
fd0 / xtime
Created November 12, 2017 16:19
#!/bin/sh
/usr/bin/time -f '%Uu %Ss %er %MkB %C' "$@"
@fd0
fd0 / surfingkeys.conf
Last active September 22, 2017 09:44
Surfingkeys configuration file
// an example to create a new mapping `ctrl-y`
//mapkey('<Ctrl-y>', 'Show me the money', function() {
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
//});
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works.
//map('?', 'u');
// an example to remove mapkey `Ctrl-i`
//unmap('<Ctrl-i>');