Skip to content

Instantly share code, notes, and snippets.

Ido Kanner ik5

  • :::1
Block or report user

Report or block ik5

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alecthegeek
alecthegeek / go-install-tools
Last active Sep 3, 2015
Set up a "standard" go project workspace with support for 3rdparty modules, version control repo and a template main package
View go-install-tools
# 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 golang.org/x/tools/cmd/...
sudo -u admin GOPATH=/tmp GOBIN=/usr/local/opt/go/bin go get -u github.com/tools/godep
View gist:2950980
{$mode objfpc}{$M+}
program test;
type
TMyClass = class
// Must be with RTTI view
procedure SayHi;
end;
procedure TMyClass.SayHi;
@yalesov
yalesov / bit.rb
Last active Sep 1, 2016
Ruby bitwise flag manipulation
View bit.rb
# ===== #
# Flags #
# ===== #
# say, a 1 byte integer
#
# 0 0 0 0 0 0 0 0
# |- position 0
# |--- position 1
# |----- position 2
@zecar
zecar / Javascript Array betterFilter.md
Last active Apr 20, 2017
javascript array.filter faster alternative
View Javascript Array betterFilter.md
Array.prototype.betterFilter = function(expression) {
	var res = [];
	for(var idx=0; idx<this.length; idx++){
		var currentItem = this[idx];
		if(expression(currentItem)){
			res.push(currentItem);
		}
	}
	return res;
@sharvit
sharvit / BreadcrumbBar.md
Last active Apr 26, 2018
BreadcrumbBar toturial
View BreadcrumbBar.md

BreadcrumbBar

breadcrumb-bar-2

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
johnpmitsch / react.md
Last active Jul 10, 2018
React/Redux Katello walkthrough resources
View react.md
@svett
svett / searchr.go
Created Jul 11, 2015
searchr - a sample application that works with pipes
View searchr.go
package main
import (
"bufio"
"flag"
"fmt"
"io"
"os"
"strings"
)
@jonmorehouse
jonmorehouse / vimrc
Created Jan 15, 2014
UUID generator for vim. Inputs a uuid to copy buffer
View vimrc
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()))
EOF
@larssmit
larssmit / .gvimrc.before
Last active Feb 18, 2019
My MacVim settings
View .gvimrc.before
" -----------------------------------------------------------------------------
" VIM Configuration for Janus (https://github.com/carlhuda/janus.git)
" Lars Smit larssmit@me.com
" -----------------------------------------------------------------------------
" -----------------------------------------------------------------------------
" Basics
" -----------------------------------------------------------------------------
set encoding=utf8
@milosgajdos83
milosgajdos83 / gist:296fb90d076f259a5b0a
Last active Mar 12, 2019
Add a MAC VLAN interfaces into Docker from the host machine
View gist:296fb90d076f259a5b0a
package main
import (
"fmt"
"log"
"net"
"github.com/milosgajdos83/tenus"
)
You can’t perform that action at this time.