Skip to content

Instantly share code, notes, and snippets.

@rabbitt
rabbitt / player.rb
Last active April 16, 2016 02:41
interactive rubywarrior
require 'readline'
require 'terminfo'
require 'abbrev'
require 'singleton'
$stty_save = %x{stty -g}.chomp
Signal.trap('WINCH', ->(*a) { Readline.set_screen_size(TermInfo.screen_size[0], TermInfo.screen_size[1]) })
Signal.trap('INT', ->(*a) { system('stty', $stty_save); exit! })
Signal.trap('QUIT', ->(*a) { system('stty', $stty_save); exit! })
@lifthrasiir
lifthrasiir / index.html
Last active October 4, 2017 14:44
K-Shoot MANIA to EffectDrive/SDVXviewer converter
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>K-Shoot MANIA to EffectDrive/SDVXviewer converter</title>
</head>
<body>
<h1><a href="http://kshoot.client.jp/">K-Shoot MANIA</a> to <a href="http://effectdrive.web.fc2.com/">EffectDrive</a>/<a href="http://sdvxviewer.wiki.fc2.com/">SDVXviewer</a> converter</h1>
<table border="1" width="80%" style="text-align:center">
<tr><th width="50%">K-Shoot MANIA pattern (<code>*.txt</code>) here</th><th width="50%">Save this to EffectDrive's <code>Drv\*\*.drv</code></th></tr>
@mscottford
mscottford / watir_wait.rb
Created January 7, 2010 13:43
Dynamically adds "wait_to_" variants for common watir methods. Calling these variants will force the browser to first wait for the browser to finish, and then to wait for the specified element to exist before performing the desired action.
require 'watir'
require 'watir/container'
require 'watir/element'
require 'watir/input_elements'
require 'watir/link'
def support_wait_to_methods
timeout_in_seconds = 30
original_method_missing = self.instance_method(:method_missing)