Skip to content

Instantly share code, notes, and snippets.

View Goles's full-sized avatar

Nicolas Goles Goles

View GitHub Profile
@Goles
Goles / gist:1091007
Created July 19, 2011 00:12
Pseudo Relational
weapon_type_id | weapon_type
1 Pierce
2 Sharp
magic_type_id | magic_type
1 Fire
weapon_id | weapon| weapon_type_id | damage
1 | Knife | 3 | 2
@Goles
Goles / gist:1091012
Created July 19, 2011 00:18
Schemaless
db.itemTypes
name: Weapon
types: Pierce, Sharp
name: Magic
types: Fire, Ice
db.items
@Goles
Goles / engine_template_generator.py
Created August 16, 2011 09:20
Gando Games Automatic Engine Template Generation
#!/usr/bin/python
import shutil
import sys
import os
import subprocess
ROOT_PATH = "GGEngine/"
SRC_PATH = "src/gengine"
GG_USERNAME = "username"
GIT_REPO_URL = "ssh://" + GG_USERNAME + "@gandogames.com/path/to/engine.git "
Usage:
rvm get {stable|latest|x.y.z|head|master|branch|help} [--auto]
Options:
stable - git clone and install the latest RVM repository stable branch.
latest - download and install the latest RVM release listed by
https://rvm.beginrescueend.com/releases/stable-version.txt
➜ ~ rvm get stable && rvm get head
Original installed RVM version:
rvm 1.10.2 by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.beginrescueend.com/]
Downloading RVM from wayneeseguin branch stable
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 829k 100 829k 0 0 105k 0 0:00:07 0:00:07 --:--:-- 168k
@Goles
Goles / zsh_git_timer.sh
Created March 7, 2012 04:06
ZSH Snippets to add time since last commit, got this somewhere... forgot where :)
# Add this to your .oh-my-zsh theme if you're using those, or directly to your zsh theme :)
# Colors vary depending on time lapsed.
ZSH_THEME_GIT_TIME_SINCE_COMMIT_SHORT="%{$fg[green]%}"
ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[cyan]%}"
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
git_custom_status() {
@Goles
Goles / cliclock.sh
Created April 5, 2012 20:37
Small command line world clock taken from Stack Overflow ( http://stackoverflow.com/questions/370075/command-line-world-clock )
#!/bin/sh
# Command-line world clock
# Taken from http://stackoverflow.com/questions/370075/command-line-world-clock
# .worldclock.zones file looks like:
# US/Pacific
# Europe/Berlin
# Chile/Continental
: ${WORLDCLOCK_ZONES:=$HOME/.worldclock.zones}
$ tmux list-windows
0: tmux [208x73] [layout b147,208x73,0,0[208x62,0,0,208x10,0,63{104x10,0,63,103x10,105,63}]] (active)
@Goles
Goles / vim.rb
Created April 28, 2012 00:02 — forked from smartinez87/vim.rb
Vim formula for Homebrew
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2'
head 'https://vim.googlecode.com/hg/'
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d'
version '7.3.487'
def features; %w(tiny small normal big huge) end
@Goles
Goles / vim.rb
Created April 28, 2012 01:04 — forked from mgrouchy/vim.rb
Vim formula for Homebrew < AD Default
require 'formula'
class Vim < Formula
homepage 'http://www.vim.org/'
url 'https://vim.googlecode.com/hg/', :revision => 'f1f6ac67acd8'
version '7.3.462'
def features; %w(tiny small normal big huge) end
def interp; %w(lua mzscheme perl python python3 tcl ruby) end