Skip to content

Instantly share code, notes, and snippets.

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
@gfixler
gfixler / gfixler #vim history lesson
Created July 17, 2014 19:31
gfixler on the history of Vim in #vim
04:22 < walt> hahaha, I love whem vim help talks about performance.. Can tell when it was originally written
04:22 < walt> "Vim does on-the-fly spell checking. To make this work fast the word list is
04:22 < walt> oh gosh
04:22 < dawik> i use airline. its pretty nice
04:22 < walt> loaded in memory. Thus this uses a lot of memory (1 Mbyte or more)."
04:22 < gfixler> dawik: me too
04:22 -!- bandini [~michele@97e50b0e.skybroadband.com] has quit [Ping timeout: 260 seconds]
04:22 < mozzarella> I just want a line that tells me the current buffer number and the total number of buffers
04:23 < mozzarella> does airline do that?
04:23 < gfixler> QED - the Quick EDitor was created at the University of California at Berkeley in the late 60s
@gfixler
gfixler / gist:11363259
Last active August 29, 2015 14:00
Learn You A Haskell scratchpad
import Data.List
import Data.Char
import qualified Data.Map as Map
import qualified Data.Set as Set
factorial n = product [1..n]
dublist x = x ++ x
double x = x + x
quadruple x = (double . double) x
average ns = sum ns `div` length ns
#!/bin/bash
#Heith Seewald 2012
#Feel free to extend/modify to meet your needs.
#Maya on Ubuntu v.1
#This is the base installer... I’ll add more features in later versions.
#if you have any issues, feel free email me at heiths@gmail.com
#### Lets run a few checks to make sure things work as expected.
#Make sure we’re running with root permissions.
if [ `whoami` != root ]; then
Intro
Why Vim?
Approach
Configuration
vim as Language
Getting Things Done
Searching Your Text
Moving Around Your Text
Changing Text
Deleting Text
aol bpm
aar bbs
abe bcf
ade bef
adm ben
ahl bim
ame bnf
amr bns
ana bob
ann boo
@gfixler
gfixler / gist:5368404
Last active December 16, 2015 03:18
ThatOtherFile - Stateless buffer toggling in Vim, via basename. Toggle between proj/file.ext and proj/<basename>/<basename>_file.ext
function! ThatOtherFile (basename)
" Toggle between ./file.ext and ./<basename>/<basename>_file.ext
" Prompts to create missing <basename> directory if absent.
let path = expand('%:p:h')
let filename = expand('%:p:t')
let opath = path[-len(a:basename):]
let ofilename = filename[:len(a:basename)]
if opath == a:basename
if ofilename == a:basename.'_'
let opath = path[:-len(a:basename) - 1]
@gfixler
gfixler / sendit
Last active December 12, 2015 10:29
Gnome Nautilus script to zip/scp files to server.
#!/bin/bash
# zip/scp selected file(s) to server; copy URL to X clipboard
# put in ~/.gnome2/nautilus
# Put these 4 lines in ~/.sendit:
# SENDIT_USER='username' # your scp login
# SENDIT_SITE='yoursite.com' # site to scp to
# SENDIT_PATH='website/path' # where to 'sendit'
# SENDIT_LINK='http://www.yoursite.com/path' # for copying URL
@gfixler
gfixler / OpenCourseOnline
Created February 11, 2013 10:14
OpenCourseOnline youtube channel links, prettied up. These were so hard to find, and so inconsistently named.
Probabilistic Graphical Models with Professor Daphne Koller - Stanford University {{{1
01.01 - Welcome | https://www.youtube.com/watch?v=WPSQfOkb1M8
01.02 - Overview and Motivation | https://www.youtube.com/watch?v=6AVurePzK3Y
01.03 - Distributions | https://www.youtube.com/watch?v=Y1i7Tzj9YFg
01.04 - Factors | https://www.youtube.com/watch?v=5R5ixMmKQzg
02.01 - Semantics & Factorization | https://www.youtube.com/watch?v=6ODl1rxoT14
02.02 - Reasoning Patterns | https://www.youtube.com/watch?v=dSLlBMOKWF4
02.03 - Flow of Probabilistic Influence | https://www.youtube.com/watch?v=PfirsYouObw
@gfixler
gfixler / blamecol.py
Created August 26, 2012 12:25
Simple SVN blame temporal grayscale colorization
#!/usr/bin/env python
'''
SVN blame temporal colorizer
Pipe shell output of `svn blame` through this.
Creates a grayscale heatmap of recentness of line changes.
Normalizes range of revisions over 20 shades of gray.
Usage: