Skip to content

Instantly share code, notes, and snippets.

View micdillon's full-sized avatar

Michael Dillon micdillon

View GitHub Profile
@micdillon
micdillon / gist:4269842
Created December 12, 2012 17:34
Adds function definition highlighting to vim in the style of Github. Place in the ~/.vim/after/syntax/c/ directory.
" Vim syntax file
" Language: C Funcion Definitions
" Maintainer: Michael Dillon <mic.dillon@gmail.com>
" Last Change: 2012 Dec. 12
" Version: 0.1
"
syn match cUserFunctionDef "\<\h\w*\>\(\_s*(\_[^)]*)\_s*{\)\@="
hi def link cUserFunctionDef cFunction
hi def link cFunction Function
@micdillon
micdillon / index.html
Last active January 28, 2017 20:59 — forked from jdarling/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
.node circle {
cursor: pointer;
fill: #fff;
stroke: steelblue;
@micdillon
micdillon / gist:4c577513efbcd8c96bea
Created February 5, 2015 17:55
bare bones .vimrc
" stuff
set nowrap
set showmatch
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set autoindent
@micdillon
micdillon / mdgithub.vim
Last active August 29, 2015 14:15
mdgithub.vim
" Vim color file -- with 256 colour support!
"
" Author: Michael Dillon <mic.dillon@gmail.com>
"
" Note: Based on Anthony Carapetis' githum.vim syntax highlighting theme
set background=light
if version > 580
hi clear
# mac droppings
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
[color]
ui = auto
[core]
editor = vim
excludesfile = [home_dir]/.gitignore_global
[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
st = status -sb
[user]
name = Michael Dillon
@micdillon
micdillon / install-tensorflow.sh
Created January 8, 2016 17:49 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
# Change the prefix to C-a from C-b
set -g prefix C-a
unbind C-b
# Set the delay between prefix and command
set -s escape-time 1
# Set the base index for windows to 1 instead of 0
set -g base-index 1