Skip to content

Instantly share code, notes, and snippets.

##
# feed it a url and it'll pass that url to a url shortener, pass the shortened url to another shortener
# and so on. in the end you should have a url that takes a couple of minutes to load. fun!
# in firefox, you'll need to up the network.http.redirection-limit in about:config to 1000 or so.
#
require 'net/http'
require 'rubygems'
require 'hpricot'
VERSION BUILD=6251204 RECORDER=FX
CLEAR
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.kentucky.com/latest_news/story/1047185.html#poll?storylink=addthis
REFRESH
TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:poll_responses ATTR=ID:p2224
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:poll_responses ATTR=ID:vote
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}}
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
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.
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.
@asiansteev
asiansteev / shinypokemon
Created September 18, 2012 02:52
Walk around in the grass
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})
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.
@asiansteev
asiansteev / check.rb
Last active August 29, 2015 14:04
hasbrotoyshop checker
require 'rubygems'
require 'nokogiri'
require 'open-uri'
require 'restclient'
require 'twitter'
require 'yaml'
@i = 0
exclusives = {
@asiansteev
asiansteev / cleanup_branches.rb
Created September 1, 2015 22:52
An old rake task to cleanup branches on Github that match master
# 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'