Skip to content

Instantly share code, notes, and snippets.

View t-mart's full-sized avatar

Tim Martin t-mart

View GitHub Profile
---------
function GoGo_OnLoad()
---------
SLASH_GOGOMOUNT1 = "/gogo"
SlashCmdList["GOGOMOUNT"] = function(msg) GoGo_OnSlash(msg) end
SLASH_GOGOID1 = "/id"
SlashCmdList["GOGOID"] = function(msg) GoGo_Msg(GoGo_Id(msg)) end
this:RegisterEvent("VARIABLES_LOADED")
From a9a78aa85012d4ef5bd25ebf74292268a5f90d00 Mon Sep 17 00:00:00 2001
From: Tim Martin <tim.martin@gatech.edu>
Date: Sun, 27 Jun 2010 01:44:24 -0400
Subject: [PATCH] mammoths will not be chosen when mounting in capitals
---
GoGoMount.lua | 21 +++++++++++++++++++++
GoGoMountData.lua | 38 +++++++++++++++++++-------------------
2 files changed, 40 insertions(+), 19 deletions(-)
@t-mart
t-mart / setup.ubuntu.solarize.sh
Created October 12, 2011 03:24
Set up Ubuntu for Solarize
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002B2B3636"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#65657B7B8383"
#include <stdlib.h>
#include "grid.h"
#include "gbalib.h"
#include "game.h"
tile* tile_init(void){
tile* t = (tile*) malloc(sizeof(tile));
t->ge = CLEAR;
t->gep = NULL;
@t-mart
t-mart / zshrc
Created January 26, 2012 06:57
bad hook
#!/usr/bin/zsh
typeset -U fpath #make fpath unique
typeset -U path #make path unique
autoload -U colors && colors
autoload -Uz vcs_info
autoload -U tetris
autoload -U compinit
export EDITOR='vim' #set editor var, as well as zsh vi mode
@t-mart
t-mart / blah.java
Created June 5, 2012 19:27
shuffling
import java.util.Random;
public class Person2 {
/**
* This method should take the string
* input and return its characters in
* random order.
* given "gtg123b" it should return
* something like "g3tb1g2".
*
@t-mart
t-mart / gist:2919961
Created June 12, 2012 20:34
my thang
ERROR=-Wall -Werror -Wextra -pedantic
STANDARD=-std=c++0x
CC=g++
#implying this is where main is
OUTFILE=$(shell basename $(shell pwd))
BUILDFILES=$(shell ls -R | grep "\.cpp")
all: run
class AddDeviseLockableColumnsToUser < ActiveRecord::Migration
def change
change_table :users do |t|
t.lockable :maximum_attemps => 3, :lock_strategy => :failed_attempts, :unlock_strategy => :none
end
end
end
@t-mart
t-mart / git_aliases.txt
Created October 15, 2012 22:55
My git aliases
Status
gst='git status'
gss='git status -s'
gstv='git status -v'
Remotes
gp='git push'
gl='git pull'
glom='git pull origin master'
ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)'
@t-mart
t-mart / backup.sh
Created December 11, 2012 20:23
Local incremental backup of Windows' drives with RSync via Cygwin.
#!/bin/sh
#Local incremental backup of Windows' drives with RSync via Cygwin.
#Run like ./backup.sh cat_pictures_drive d g
#where d is the drive containing cat pictures
#and g is the destination of the backup.
#Backups will be made on g like G:\cat_pictures_drive_backup\backup-YY-MM...
#high-level description of the content we're backing up