Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View ergodox_infinity_layout.json
{
"header": {
"Author": "HaaTa (Jacob Alexander) 2015",
"Base": "Blank",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2",
"KLL": "0.3c",
"Layout": "Default",
"Name": "MDErgo1",
"Version": "0.1"
View colorscheme.sh
#!/bin/bash
T='gYw'
echo -e "\n 40m 41m 42m 43m\
44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>Volume Controls to PageUp / PageDown</name>
<identifier>private.functions_as_media.ctrl_volume_controls</identifier>
<autogen>--KeyToConsumer-- KeyCode::PAGEDOWN, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>--KeyToConsumer-- KeyCode::PAGEDOWN, ConsumerKeyCode::VOLUME_DOWN</autogen>
<autogen>--KeyToConsumer-- KeyCode::PAGEUP, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>--KeyToConsumer-- KeyCode::PAGEUP, ConsumerKeyCode::VOLUME_UP</autogen>
<autogen>--KeyToConsumer-- KeyCode::F15, ConsumerKeyCode::VOLUME_MUTE</autogen>
View reset_tslime_vars.vim
map <leader>Ts :call ResetTSlimeVars()<CR>
function! ResetTSlimeVars()
execute "normal \<Plug>SetTmuxVars"
endfunction
View reset_tslime_pane.vim
map <leader>pn :call ResetTSlimePaneNumber()<CR>
function! ResetTSlimePaneNumber()
let g:tslime['pane'] = input("pane number: ", "", "custom,Tmux_Pane_Numbers")
endfunction
@zacholauson
zacholauson / json_formatter.rb
Last active Dec 18, 2015
Takes a JSON string and formats it
View json_formatter.rb
require 'rspec'
describe "json" do
it "reads simplest possible" do
process("{}").should == "{}"
end
it "1 term" do
process("{\"x\":1}").should == "{\n\"x\":1\n}"
end
it "2 terms" do