Skip to content

Instantly share code, notes, and snippets.

@asaaki
asaaki / README
Created July 18, 2011 18:50 — forked from peterc/README
testrocket (origin by peterc)
TestRocket is a simple, tiny testing library for Ruby 1.9.
If => in a hash is a "hash rocket", then +-> and --> for tests should be
"test rockets"!
Simple syntax:
+-> { block that should succeed }
--> { block that should fail }
@mattsears
mattsears / README.md
Created September 5, 2011 07:41
Gittr: A Git key/value store

Gittr.rb

Git as a key-value store! Build with Grit, it supports SET, GET, KEYS, and DELETE operations. In addition, we can also get the change history of key/values.

And since it's Git, we can easily enhance it to include other awesome Git features such as branches, diffs, reverting, and more!

Example:

function k() {
kill -9 $(ps ax | grep $1 | grep -v grep | awk '{print $1}')
}
@CoderPuppy
CoderPuppy / approaches.rb
Created August 23, 2012 21:56
Instruction Set
# Vote which one is best
# No Data Registers, Current
set reg(0) => raw("Hello, ")
add 0, raw("Drew")
add reg(0), raw("!!!")
# Array of Data Registers
set "Hello, "
set "Drew"
@CoderPuppy
CoderPuppy / vx-ace.rb
Created September 2, 2012 18:20
RPG Maker Plugin System
# VX Ace Plugin System by CoderPuppy
module Plugins
@all = []
def self.register(plugin)
@all << plugin
@all.uniq!
self
@CoderPuppy
CoderPuppy / .cvimrc
Last active January 30, 2017 15:52
cVim RC
map j scrollLeft
map k scrollDown
map l scrollUp
map ; scrollRight
map K previousTab
map L nextTab
map J goBack
map I goForward
map C-k scrollPageDown
map C-l scrollPageUp