Skip to content

Instantly share code, notes, and snippets.

View keehun's full-sized avatar

Keehun keehun

View GitHub Profile
javascript:if(document.location.href.match(/http:\/\/[a-zA-Z\.]*youtube\.com\/watch/)){document.location.href='http://www.youtube.com/get_video?fmt='+(isHDAvailable?'22':'18')+'&video_id='+swfArgs['video_id']+'&t='+swfArgs['t']}
table.tablesorter {
background-color: #CDCDCD;
margin:10px 0pt 15px;
width: 100%;
text-align: left;
}
table.tablesorter thead tr th, table.tablesorter tfoot tr th {
background-color: #e6EEEE;
padding: 4px;
}
$weekstart = mktime(0, 0, date("Z"), date("m"), date("d")-date("w"), date("Y"), date("I"));
#!/bin/sh
COMMAND=$1
COMMAND_TYPE=$2
COMMAND_CLASS=$3
TITLE=$4
INFO="Keehun's School Toolchain. \nStarted in 2011"
case "$COMMAND_CLASS" in
'Macro') DIR="APMacro"
@keehun
keehun / ssh_tunnel_command
Created May 23, 2011 23:49
SSH Tunneling
sudo ssh keehun@thales.keehun.com -L 2502:thales.keehun.com:443 -N -D 1337
@keehun
keehun / simple_kalman.cpp
Created August 23, 2011 20:24
Simple Kalman Filter
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float pre[255] = {-0.054337, -0.036224, -0.036224, -0.054337, -0.054337, -0.036224, -0.054337, -0.054337, -0.072449, -0.126785, -0.144897, -0.144897, -0.163010, -0.199234, -0.199234, -0.235458, -0.271683, -0.326019, -0.380356, -0.416580, -0.470917, -0.507141, -0.561478, -0.597702, -0.652039, -0.688263, -0.706375, -0.742599, -0.833160, -0.833160, -0.869385, -0.887497, -0.905609, -0.923721, -0.941833, -0.923721, -0.978058, -0.996170, -0.978058, -0.978058, -1.032394, -0.996170, -1.050507, -1.014282, -1.014282, -1.014282, -0.959946, -0.959946, -0.923721, -0.869385, -0.869385, -0.778824, -0.815048, -0.796936, -0.706375, -0.579590, -0.561478, -0.489029, -0.507141, -0.452805, -0.434692, -0.307907, -0.380356, -0.253571, -0.307907, -0.217346, -0.126785, -0.108673, -0.163010, -0.018112, -0.018112, 0.054337, 0.126785, 0.054337, 0.235458, 0.434692, 0.579590, 0.688263, 0.742599, 0.724487, 0.833160, 0.887497, 0.652039, 0.561478, 0.724487, 0.633926,
@keehun
keehun / del.sh
Created March 14, 2012 14:32
Command Line Deletion To Trash
function del() {
while [ -n "$1" ]; do
if [ ! -e "$1" ]; then
echo "'$1' not found; exiting"
return
fi
local file=`basename -- "$1"`
# Chop trailing '/' if there

Keybase proof

I hereby claim:

  • I am keehun on github.
  • I am keehun (https://keybase.io/keehun) on keybase.
  • I have the public key with fingerprint E711 39DB 4088 0166 4BC2  6CF0 E8B7 7374 EDED 1F6E

To claim this, I am signing this object:

@keehun
keehun / osx_install.sh
Last active November 19, 2019 21:48 — forked from cassiocardoso/osx_install.sh
Install most of my Apps with homebrew & cask
#!/bin/sh
read -p "Press any key to continue... " -n1 -s
echo '\n'
echo Install System Tools
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
brew install git
brew install node
brew install ruby
@keehun
keehun / Hal9000-Before.swift
Last active August 19, 2018 00:32
Practical Dynamic Type, Part 2
import Foundation
import UIKit
// MARK: - Hal9000
class Hal9000: UIView {
/// A `UIFont` that will be used as the typeface of Hal9000's messages
let staticFont: UIFont = UIFont(name: "GillSans-Light", size: 36.0)!