Skip to content

Instantly share code, notes, and snippets.

View alpicola's full-sized avatar

Ryo Tanaka alpicola

View GitHub Profile
// ==UserScript==
// @name Google Search Filter
// @description Selected web-sites aren't displayed from Google search result.
// @version 2.2.6
// @author Shinya
// @namespace http://www.code-404.net/
// @homepage http://userscripts.org/scripts/show/12643
// @include http://www.google.*/search*
// @require http://gist.github.com/3242.txt
// ==/UserScript==
// ==UserScript==
// @name Atomos Entry Management
// @namespace http://5ivestar.org/
// @include http://localhost:9292/*
// @include http://localhost:9393/*
// ==/UserScript==
var username = 'admin';
var password = 'password';
// ==UserScript==
// @name Atomos Entry Management
// @namespace http://5ivestar.org/
// @include http://localhost:9292/*
// ==/UserScript==
var username = 'admin';
var password = 'password';
var style = document.createElement('style');
#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
require 'net/smtp'
require 'date'
require 'yaml'
require 'nkf'
FROM = '[email protected]'
#!/usr/bin/env ruby
require 'twitter'
require 'yaml'
if ARGV.length != 1
puts 'usage: ./tweet.rb Hello!'
exit
end
require 'ffi-ncurses'
class Tetris
Curses = FFI::NCurses
PIECES = [
[ # O
[[-1, 0], [0, 0], [-1, 1], [0, 1]]
],
[ # I
<?xml version='1.0'?>
<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
<signatures version='1.0'>
<depends_on path='/System/Library/Frameworks/CoreFoundation.framework'/>
<depends_on path='/System/Library/Frameworks/SystemConfiguration.framework'/>
<depends_on path='/System/Library/Frameworks/Security.framework'/>
<cftype name='DCSDictionaryRef' type='^{__DCSDictionary=}'/>
<function name='DCSCopyTextDefinition'>
<arg type='^{__DCSDictionary=}'/>
<arg type='^{__CFString=}'/>
#!/usr/bin/env ruby
SOI = "\xff\xd8"
APP0 = "\xff\xe0"
DQT = "\xff\xdb"
DHT = "\xff\xc4"
SOF0 = "\xff\xc0"
SOS = "\xff\xda"
EOI = "\xff\xd9"
require 'open-uri'
require 'RMagick'
if ARGV.length != 2
puts 'Usage: ./ame.rb latitude longtitude'
exit
end
url = 'http://tokyo-ame.jwa.or.jp/mesh/100/%s.gif' %
Time.at((Time.now - 30).to_i / 300 * 300).strftime('%Y%m%d%H%M')
#!/usr/bin/env ruby
require 'optparse'
require 'pathname'
require 'tmpdir'
libraries = %w|/Applications/Processing.app/Contents/Resources/Java/core.jar|
compiler = 'scalac'
OptionParser.new {|opt|
opt.on('-w', '--watch') { compiler = 'fsc' }