Skip to content

Instantly share code, notes, and snippets.

View ik5's full-sized avatar

ik5 ik5

View GitHub Profile
alecthegeek / go-install-tools
Last active September 3, 2015 18:18
Set up a "standard" go project workspace with support for 3rdparty modules, version control repo and a template main package
# Install all the Go tools and godep tool
# Location of gobin is based on installation by OS X Homebrew
sudo -u admin GOPATH=/tmp GOBIN=/usr/local/opt/go/bin go get -u
sudo -u admin GOPATH=/tmp GOBIN=/usr/local/opt/go/bin go get -u
{$mode objfpc}{$M+}
program test;
TMyClass = class
// Must be with RTTI view
procedure SayHi;
procedure TMyClass.SayHi;
zecar / Javascript Array
Last active April 20, 2017 21:27
javascript array.filter faster alternative
Array.prototype.betterFilter = function(expression) {
	var res = [];
	for(var idx=0; idx<this.length; idx++){
		var currentItem = this[idx];
	return res;
sharvit /
Last active April 26, 2018 10:14
BreadcrumbBar toturial



Breadcrumbs display a users location within an application hierarchy. They act as a resource to help users navigate more efficiently and provide additional context.

The Breadcrumb Switcher provides a shortcut for users to quickly navigate to parallel pages, rather than navigating back to the previous page and making a new selection.

johnpmitsch /
Last active July 10, 2018 03:21
React/Redux Katello walkthrough resources
jonmorehouse / vimrc
Created January 15, 2014 19:09
UUID generator for vim. Inputs a uuid to copy buffer
fu! GenerateUUID()
python << EOF
import uuid
import vim
# output a uuid to the vim variable for insertion below
vim.command("let generatedUUID = \"%s\"" % str(uuid.uuid4()))
larssmit / .gvimrc.before
Last active February 18, 2019 10:16
My MacVim settings
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (
" Lars Smit
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
milosgajdos / gist:296fb90d076f259a5b0a
Last active March 12, 2019 05:34
Add a MAC VLAN interfaces into Docker from the host machine
package main
import (
zaydek-old / howto
Last active July 21, 2019 07:04
Proof-of-concept for SQL-driven logging. You can like this tweet for updates:
bash$ pg_ctl -D /usr/local/var/postgres start ## init postgres
bash$ psql -d postgres ## connect to postgres
psql# create database logger; -- create a database named "logger"
psql# begin; -- start a transaction
psql# \i log.sql -- load database
psql# commit; -- commit the transaction
bash$ go run log.go ## run driver program
milosgajdos / gist:9f68b1818dca886e9ae8
Last active December 1, 2019 23:28
Add a VLAN interfaces into Docker from the host machine
package main
import (