Skip to content

Instantly share code, notes, and snippets.

View yuiseki's full-sized avatar
🍻
I want to drink

yuiseki yuiseki

🍻
I want to drink
View GitHub Profile
@esehara
esehara / sicp-173.markdown
Last active August 29, 2015 14:13
SICP財団(元ネタはSCP: http://ja.scp-wiki.net/scp-series)

SICP-173 - 副作用性機械理論

アイテム

SICP-173

オブジェクトクラス

Euclid

// wedata utility for Greasemonkey
// usage
/*
// ==UserScript==
// @name foo bar
// @namespace http://baz.com
// @require http://gist.github.com/raw/34615/04333b7e307eb029462680e4f4cf961f72f4324c
// ==/UserScript==
// ==UserScript==
// @name fc2_img_referer_hack
// @namespace http://d.hatena.ne.jp/javascripter/
// @include http*
// ==/UserScript==
function refhack(parent) {
Array.forEach(
parent.querySelectorAll('a[href^="http://blog-imgs-"]'),
function (a) {
@darashi
darashi / eyefi_receiver.rb
Created June 11, 2009 06:19
Eye-fi receiver
#!/usr/bin/ruby
#
# Eye-fi receiver
# -- An imcomplete implementation of Gallery Remote Protocol Server
# by SHIDARA Yoji <dara@shidara.net>
#
# see http://codex.gallery2.org/Gallery_Remote:Protocol
#
require 'fileutils'
require 'sinatra'
package Net::TwitterStreamingAPI;
use utf8;
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
use HTTP::Request;
use POE::Filter::Line;
#!/usr/bin/perl
# http://todeskin.g.hatena.ne.jp/eigokun/20090902/1251903150
# TODO: cache LWP response
use strict;
use URI;
use JSON;
use LWP::UserAgent;
use Web::Scraper;
@oquno
oquno / school.rb
Created November 26, 2009 19:01
mixi同級生の人増の増減調査用
#!/usr/local/bin/ruby -Ks
# _*_ coding: utf-8 _*_
require 'rubygems'
require 'mechanize'
require 'time'
MAIL = 'mixi_login_mail_address'
PASS = 'mixi_login_pass'
DIRECTORY = 'log_directory_path'
// ==UserScript==
// @name fldr_show_fc2_images.user.js
// @namespace http://d.hatena.ne.jp/os0x/
// @description Make fc2 images viewable on LDR/Fastladder
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/public/*
// @include http://fastladder.com/reader/
// ==/UserScript==
// via http://gist.github.com/48621
[10/03/22 0:57:09] itkz: 情報は解放されたがっており、知識の追求はパスワードとかプロテクションスキームなどというもので妨げられてはならない。だから、立ち入ったり、潜んだり、覗いて見たりしてもかまわない・・・・  ただし、触れてはいけない。
          ILF:情報解放戦線
@hitode909
hitode909 / negaproxy.rb
Created April 18, 2010 08:36
画像の色を反転させるプロキシ
#!/usr/bin/env ruby
require 'webrick'
require 'webrick/httpproxy'
require 'RMagick'
handler = Proc.new() { |req,res|
if res['content-type'] =~ /image/
begin
img = Magick::Image.from_blob(res.body).first