Skip to content

Instantly share code, notes, and snippets.

View tmbo's full-sized avatar

Tom Bocklisch tmbo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tmbo on github.
  • I am tmbo (https://keybase.io/tmbo) on keybase.
  • I have a public key ASCFOhm3Z52iPMizSLNm9d_b5E1lWgw4IyIWA9VHoIgABQo

To claim this, I am signing this object:

@tmbo
tmbo / infdiv.tex
Created October 10, 2016 15:18
Latex macro for deviation function
\usepackage{mathtools}
% ...
\DeclarePairedDelimiterX{\infdivx}[2]{(}{)}{%
#1\;\delimsize\|\;#2%
}
\newcommand{\infdiv}{D\infdivx}
@tmbo
tmbo / tangmao.py
Created May 17, 2016 13:03
Tang Mao Pseudo code
INPUT:
U # underlying set of features
EXPECTED_FEATURE_SET_SIZE # how many features should be selected
OUTPUT:
S # selected set of features
while(not is_good_enough(S)):
Ux, Uz = split_into_continous_nominal_features(U)
@tmbo
tmbo / apache-spark.rb
Last active September 16, 2015 09:37
brew-spark-1.2.2-hadoop-1.0.4
require "formula"
class ApacheSpark < Formula
homepage "http://spark.apache.org/"
head "https://github.com/apache/spark.git"
url "http://d3kbcqa49mib13.cloudfront.net/spark-1.2.2-bin-hadoop1.tgz"
version "1.2.2"
conflicts_with 'hive', :because => 'both install `beeline` binaries'
@tmbo
tmbo / podfile
Last active August 31, 2015 18:22
muvr-mlp-example
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.4'
use_frameworks!
pod 'MLPNeuralNet', '~> 1.0.0'
@tmbo
tmbo / gist:adb9d52462678b0c2652
Created July 18, 2015 06:50
onename verification
Verifying I am +tmbo on my passcard. https://onename.com/tmbo
import scala.annotation.tailrec
import scala.App
object Test extends App {
val NumberOfRepetitions = 20
val longText = "This is a test text containing something and SoMETHING else." * 10000
println(s"Ready to start. Text size ${longText.length}")
@tmbo
tmbo / install_shellgame.sh
Created October 23, 2012 23:42
Shellgame installer
echo " "
echo " _____ _____ _____ "
echo "| __| | |"
echo "|__ | --| | | |"
echo "|_____|_____|_|_|_|"
echo "Shellgame installer"
echo ""
command -v brew >/dev/null 2>&1 || {
echo ""
@tmbo
tmbo / install_oxalis.sh
Last active October 12, 2015 00:18
Oxalis installer
echo " "
echo " _____ _____ _____ "
echo "| __| | |"
echo "|__ | --| | | |"
echo "|_____|_____|_|_|_|"
echo " Oxalis installer "
command -v brew >/dev/null 2>&1 || {
echo ""
echo "~~~~ Installing homebrew ~~~~"