This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AA | |
AAA | |
AAAL | |
AAAS | |
AAE | |
AAEE | |
AAG | |
AAH | |
AAHED | |
AAHS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'mini_magick' | |
# for converting images from http://www.thecoverproject.net to printable pdfs. | |
# open 8.5x14 blank pdf | |
blank = MiniMagick::Image.open('blank_legal.jpg') | |
Dir.glob("input/*.jpg").each do |input_file| | |
p input_file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script will delete all branches that have been merged to master. | |
# | |
# Usage: | |
# ruby cleanup_branches.rb | |
# | |
# Or to delete all remote branches: | |
# ruby cleanup_branches.rb remote | |
# | |
remote = '-r ' if ARGV.first == 'remote' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
require 'open-uri' | |
require 'restclient' | |
require 'twitter' | |
require 'yaml' | |
@i = 0 | |
exclusives = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AARON: An extra A, to match your extra chromasome. | |
DJANGO: Did you mean the over-rated musician with the stupid name or the overcomplicatd web framework with the stupid name? | |
ABBY: Abby. Gets stabby. Don't make her crabby! Abby. | |
KANYE: Watch the Throne was really disappointing. | |
ABDUL: Abdul. What a ghoul. Smells like drool. Abdul. | |
WIL: You watch sports with a horse head on. And your name is stupid. | |
ABE: Let's be honest. Your name is stupid. | |
BIZ: Biz is as bad a name for a person as Jelly is for a company. | |
ABEL: I hope your brother kills you. | |
ABIGAIL: Hebrew for "her father's joy." Your father's joy must have been making his daughter live with a shitty name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "gd" | |
for i=1,5000 do | |
savestate.load(0) | |
for j=1,1000 do | |
r = math.random(10) | |
print(r) | |
if r == 1 then joypad.set(1, {up=1}) | |
elseif r == 2 then joypad.set(1, {up=1, right=1}) | |
elseif r == 3 then joypad.set(1, {right=1}) | |
elseif r == 4 then joypad.set(1, {right=1, down=1}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_TITLE = "Mega Man 3 - Weapon Select" | |
SCRIPT_VERSION = "1.0" | |
require "m_utils" | |
m_require("m_utils",0) | |
--[[ | |
Just a quick script to allow Mega Man to cycle through his weapons with the select button without having to pause. | |
It works, but it's pretty buggy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCRIPT_TITLE = "Mega Man 2 - Weapon Select" | |
SCRIPT_VERSION = "1.0" | |
require "m_utils" | |
m_require("m_utils",0) | |
--[[ | |
Just a quick script to allow Mega Man to cycle through his weapons with the select button without having to pause. | |
It works, but it's pretty buggy. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test/unit' | |
# | |
# The goal for this exercise is to get the tests to pass while not using | |
# the expected functionality. The 'multiply' method shouldn't actually | |
# multiply, but it should get the tests to pass _somehow_. | |
# | |
# CompTest may be renamed, as may CompEntry, so don't rely on names. | |
# | |
class CompEntry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startshape flower_step | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x 2.5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x -2.5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x 5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x -5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x 7.5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x -7.5}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x 10}} | |
rule flower_step {flower{} flower_step{size 1.1 y -5 z 1 x -10}} |
NewerOlder