Skip to content

Instantly share code, notes, and snippets.

💭
Preparing to summit

Kalen KalenAnson

💭
Preparing to summit
Block or report user

Report or block KalenAnson

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
@KalenAnson
KalenAnson / .aliases
Last active Aug 7, 2017
OSX Dot Files
View .aliases
# Change to dev directory
alias dev="cd ~/Development"
View .tmux.conf
################################################################################
# _
# | |_ _ __ ___ _ ___ __
# | __| '_ ` _ \| | | \ \/ /
# | |_| | | | | | |_| |> <
# \__|_| |_| |_|\__,_/_/\_\
#
################################################################################
# ø
################################################################################
@KalenAnson
KalenAnson / snippets.cson
Last active Apr 12, 2017
Atom snippets
View snippets.cson
# ø snippets
'.text.html.php':
'Classify':
'prefix': '..'
'body': '->'
'.source.c':
'Classify':
'prefix': '..'
'body': '->'
'*':
@KalenAnson
KalenAnson / .xinitrc_awesome
Last active Oct 11, 2016
Awesome window manager .xinitrc
View .xinitrc_awesome
#!/bin/bash
# ø
# Place this file in the following location:
# $HOME/.xinitrc
# Disable bell
xset -b
# Disable all Power Saving Stuff
xset -dpms
@KalenAnson
KalenAnson / lagrange.js
Created Sep 28, 2016 — forked from maccesch/lagrange.js
Lagrange Polynomial Interpolation. Example: http://jsfiddle.net/maccesch/jgU3Y/
View lagrange.js
/**
* At least two points are needed to interpolate something.
* @class Lagrange polynomial interpolation.
* The computed interpolation polynomial will be reffered to as L(x).
* @example
* var l = new Lagrange(0, 0, 1, 1);
* var index = l.addPoint(0.5, 0.8);
* console.log(l.valueOf(0.1));
*
* l.changePoint(index, 0.5, 0.1);
View keybase.md

Keybase proof

I hereby claim:

  • I am kalenanson on github.
  • I am kalen (https://keybase.io/kalen) on keybase.
  • I have a public key ASCZCQ-3YBeAFiB0gTxUuYL56wdDWavjg4jopR8egA5Gkgo

To claim this, I am signing this object:

View xboxdrv.cfg
# xboxdrv config file
[xboxdrv]
ui-clear = true
[ui-axismap]
X1 = ABS_X
Y1 = ABS_Y
X2 = ABS_RX
Y2 = ABS_RY
View startXboxdrv.sh
xboxdrv --evdev /dev/input/event17 \
--evdev-keymap BTN_A=a,BTN_B=b,BTN_SELECT=back,BTN_START=start,BTN_MODE=guide,BTN_TL=lb,BTN_TR=rb,BTN_X=x,BTN_Y=y,BTN_THUMBL=tl,BTN_THUMBR=tr \
--evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_RX=x2,ABS_RY=y2,ABS_HAT0X=dpad_x,ABS_HAT0Y=dpad_y,ABS_BRAKE=lt,ABS_GAS=rt \
--axismap -y1=y1,-y2=y2 \
--next-config \
--mouse \
--axismap -y1=y1,-y2=y2 \
--ui-buttonmap "start=KEY_PROG1,lb=BTN_SIDE,rb=BTN_EXTRA,y=KEY_F5,back=KEY_PROG2"
@KalenAnson
KalenAnson / key.mp
Last active Feb 16, 2018
Caps Lock to Control - Linux (See comments for usage waaay down at the bottom)
View key.mp
keymaps 0-127
keycode 1 = Escape
alt keycode 1 = Meta_Escape
shift alt keycode 1 = Meta_Escape
altgr alt keycode 1 = Meta_Escape
shift altgr alt keycode 1 = Meta_Escape
control alt keycode 1 = Meta_Escape
shift control alt keycode 1 = Meta_Escape
altgr control alt keycode 1 = Meta_Escape
shift altgr control alt keycode 1 = Meta_Escape
View gist:9bd106c94bfe4890a5cc
# Install Pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Add the following to `.vimrc`
" Start Pathogen
execute pathogen#infect()
# Now add Syntastic via Pathogen
cd ~/.vim/bundle && \
You can’t perform that action at this time.