This file contains hidden or 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 "sinatra" | |
require "datamapper" | |
require "oauth" | |
require "haml" | |
KEY = '' | |
SECRET = '' | |
DataMapper.setup(:default, "sqlite:///home/ssig33/development/pankure/store.sqlite3") |
This file contains hidden or 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 "sinatra" | |
require "builder" | |
require "time" | |
require "uri" | |
DIR = "" | |
PATH = "" | |
PREFIX = "" | |
TITLE = "" | |
AUTHOR = "" |
This file contains hidden or 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 Miyoshi Ate | |
// @namespace http://ssig33.com | |
// @description Miyoshi Ateru | |
// @include http://bentou.ddo.jp/miyoshi.cgi* | |
// ==/UserScript== | |
var ary; | |
ary = document.getElementsByTagName("img"); | |
var size = ary.length; |
This file contains hidden or 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 mi8_r nagai | |
// @namespace http://ssig33.com/ | |
// @description mi8_r が長くなる | |
// @include http://1983年の.荒川智則.jp/* | |
// ==/UserScript== | |
var ns = document.getElementsByTagName("img"); | |
for(i = 0; i < ns.length; i++){ | |
var img = ns[i]; |
This file contains hidden or 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
set wildmenu | |
colorscheme advantage | |
set laststatus=2 | |
:set encoding=utf-8 | |
:set fileencodings=utf-8,ucs-bom,iso-2022-jp-3,iso-2022-jp,eucjp-ms,euc-jisx0213,euc-jp,sjis,cp932 | |
set fileformats=unix,dos,mac | |
if exists('&ambiwidth') | |
set ambiwidth=double |
This file contains hidden or 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 | |
file = open(ARGV[0], "rb").read.unpack("H*") | |
level_text = file.first.scan(/6176634301....../).first.gsub(/6176634301/, "") | |
puts "Original Level is #{("0x"+level_text.unpack("a4a*").last).to_i(16)}" | |
new_level_text = level_text.chop.chop+"#{ARGV[1].to_i.to_s(16)}" | |
file = file.first.gsub(/#{level_text}/, new_level_text) | |
write = open(ARGV[0], "wb") | |
write.puts [file].pack("H*") | |
write.close |
This file contains hidden or 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 "sinatra" | |
require "datamapper" | |
require "oauth" | |
require "haml" | |
require "rack/csrf" | |
KEY = '' | |
SECRET = '' |
This file contains hidden or 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 Colorful Favstar.fm | |
// @namespace http://moco.nond.es/ | |
// @description Change tweet color and font size by favourites count like Favotter.net. | |
// @version 0.2.0.201110217 | |
// @include http://favstar.fm/* | |
// @include http://ja.favstar.fm/* | |
// @include http://de.favstar.fm/* | |
// ==/UserScript== | |
(function () { |
This file contains hidden or 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 "sinatra" | |
require "haml" | |
require "oauth" | |
require "json" | |
KEY = "wkkd4EAkZdlbcIoJKssJhg" | |
SECRET = "0GLyqoWNHcKfagLB4d5JMfUEninuT1HxsjdcnFIkM" | |
def consumer | |
OAuth::Consumer.new(KEY, SECRET, {:site => "http://twitter.com"}) |
This file contains hidden or 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 'sinatra' | |
require 'haml' | |
require 'gruff' | |
require 'json' | |
require 'time' | |
get '/yumeko.png' do | |
ary = `grep kgです /home/ssig33/local/apps/tiarra/log/\\#yumeko=2aT/*`.split("\n").collect{|x| x.split("yumeko> ").last.to_f} | |
date = `grep kgです /home/ssig33/local/apps/tiarra/log/\\#yumeko=2aT/*`.split("\n").collect{|x| Time.parse(x.split("/").last.split(".txt").first).strftime("%m/%d")} |