Skip to content

Instantly share code, notes, and snippets.

View jcchurch's full-sized avatar

James Church jcchurch

View GitHub Profile
@jcchurch
jcchurch / .tmux.conf
Last active May 13, 2016 14:52
My TMUX configuration file.
# Act like GNU screen
unbind C-b
set -g prefix C-a
bind-key C-a last-window
setw -g aggressive-resize on
# Reload tmux conf
bind-key r source-file ~/.tmux.conf
# Look good
#!/bin/sh
for i in $(ls -1 $1)
do
thumb=$(echo $i | sed 's/\./_t./')
convert $i -resize 120000@ $thumb
done
@jcchurch
jcchurch / .vimrc
Last active November 22, 2018 06:19
" .vimrc
" James's vim configuration file.
" This configuration makes James happy to program.
let mapleader=" "
set autoindent
set backspace=indent,start
set nocompatible
set expandtab
@jcchurch
jcchurch / quickPlot.m
Last active October 12, 2015 21:18
Quickly plot matlab data.
function quickPlot(varargin)
% Quickly plot point clouds of data.
% This works for up to 5 datasets of
% 1D or 2D or 3D data, regardless of the
% row-order or column-order format.
%
% Also works with 2D or 3D matrices.
%
% How to use this function:
% --> Give it data. That's pretty much it.
@zaeleus
zaeleus / shirt_big_18.rb
Created May 6, 2011 04:01
Ole Miss ACM t-shirt design in Ruby
#!/usr/bin/env ruby
def a(m );print (m); end;
require 'zlib' ;eval(%w(c ='#'; s=32.
chr;f="\n"; j=4;i= [25, 20,14,8,3,3,j,j,5
,5,6];a (s*3 0+c*4+ s*11+c*4+f);p=-1
;[28 ,38, 50 ,62 ,72].each{|n|a(s *i[
p+=1 ]+c *n +f) ;}; w=['c 1bxji 7',' 9ixq z9b'
,'7k 1eptf', '76 zemy2' ,'qoi m0x'] .map {|g| g.to_ i(36)
.to_ s(2) };[2,3 ]. eac h{|h |w[h ]='0 '+w[ h]};w[ 4]=('0
@jcchurch
jcchurch / oneliners.txt
Created April 5, 2011 23:38
Oneliners
And that judge wasn't gonna look at the twenty-seven eight-by-ten color glossy pictures with the circles and arrows and a paragraph on the back of each one, explainin' what each one was to be used as evidence against us. And we was fined fifty dollars and had to pick up the garbage in the snow, but that's not what I came to tell you about.
All your base are belong to us.
Support your local medievalist.
The three kinds of people: Those who can count and those who can't.
Must be user error.
Close Cover Before Striking
The light at the end of the tunnel is usually a train.
42
First pants THEN your shoes.
BSA HandBook, 2nd Ed,: "Scouts as a rule do not go into the big woods."