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
#!/bin/env ruby | |
# encoding: utf-8 | |
# Author: kimoto | |
require 'mizuho_bank' | |
require 'logger' | |
require 'kconv' | |
require 'yaml' | |
require 'im-kayac' | |
class Pit::ImKayac |
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
# Vagrant Cheats | |
# =========================== | |
alias vup="vagrant up" | |
alias vh="vagrant halt" | |
alias vs="vagrant suspend" | |
alias vr="vagrant resume" | |
alias vrld="vagrant reload" | |
alias vssh="vagrant ssh" | |
alias vstat="vagrant status" |
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
#!/usr/bin/env ruby | |
%w|ubygems pathname pit erb|.each {|g| require g } | |
def read_sections | |
sections = {} | |
section = nil | |
DATA.readlines.each do |line| | |
if line =~ /^@@\s+(.+)/ | |
section = $1 | |
elsif section |
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
# coding: utf-8 | |
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'nokogiri' | |
# Usage: ruby extract_prefix.rb http://shop.menz-style.com/ | |
# ruby extract_prefix.rb http://hayabusa.2ch.net/news4vip/subback.html | |
def get_prefix_list(url) | |
list = [] |
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
# coding:utf-8 | |
require 'rubygems' | |
require 'mongo' | |
include Mongo | |
# USAGE: ruby generate-party-conversation.rb tily todesking | |
me, target = ARGV | |
templates = DATA.read.split("\n") | |
db = Connection.new.db('twitter') |
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
// ==UserScript== | |
// @name nani_wo_mite_mo_nanika_wo_omoidasu_reloaded.user.js | |
// @namespace http://d.hatena.ne.jp/taizooo/ | |
// @include http://ermos-tily.dotcloud.com/* | |
// ==/UserScript== | |
// via http://let.hatelabo.jp/taizooo/let/gYC-xau7z9ONTw | |
location.href = 'javascript:(' + | |
function () { |
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
def args_to_hash(*args) | |
hash = {} | |
path, line = caller.first.split(':') | |
File.open(path) do |f| | |
(line.to_i-1).times { f.readline } | |
source = f.readline | |
args_text = source[/args_to_hash\((.+)\)/, 1] | |
keys = args_text.gsub(/\s/, "").split(',') | |
keys.each_with_index do |key, i| |
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
source 'http://rubygems.org' | |
gem 'less' | |
gem 'uglifier' | |
gem 'watchr' |

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
// ==UserScript== | |
// @name EvilRT | |
// @namespace gyuque | |
// @include https://plus.google.co* | |
// ==/UserScript== | |
/* | |
This code is available under dual licensing, the MIT license and the | |
DeNA License. | |
*/ |