Skip to content

Instantly share code, notes, and snippets.

View sorah's full-sized avatar

Sorah Fukumori sorah

View GitHub Profile
###
# This is a demonstration of using SQLite3's Virtual File System API in Ruby.
#
# == Synopsis
#
# This program will store its SQLite database after the __END__ line.
#
# === In Detail
#
# SQLite3 uses the DATABase class as a proxy for our IO object. Upon
#!/usr/env ruby
# vim:fileencoding=utf-8
require "rubygems"
require "mechanize"
id = "example@example.com"
pwd = "password"
agent = Mechanize.new
@draftcode
draftcode / gist:1357281
Created November 11, 2011 05:35
構文解析 Howto

構文解析 Howto

Author

draftcode

Date

2011-11-11T13:18:07+09:00

ID

289a0136-0c1c-11e1-a06b-040ccee352e6

こうぶん、かいせきー

SPモードメールプロトコル
------------------------
< サーバーのレスポンス
> クライアントのリクエスト
---
< 220 ESMTP Server Ready
> EHLO mail.spmode.ne.jp
@mame
mame / gist:2510170
Created April 27, 2012 15:29
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
A Ranking of the "Procrastinating" committers of Ruby (2012/04/27)
(or, how many tickets does each committer have?)
1: matz (126 tickets)
2: nobu (62 tickets)
3: ko1 (53 tickets)
4: akr (29 tickets)
5: mrkn (25 tickets)
6: nahi (18 tickets)
7: MartinBosslet (16 tickets)
@andyferra
andyferra / github.css
Created April 30, 2012 02:11
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@qnighy
qnighy / webmanga.md
Created May 28, 2012 14:15
オススメWeb漫画 感想

オススメWeb漫画 感想

ニート様がみてる

http://www.geocities.jp/obokusama/

VIPPERがスレ立てて1000行ったので、約束通り女装して女子高に潜入

module Amida
class App
START_CHAR = 65
def header(column)
chars = (START_CHAR...(START_CHAR + column)).map(&:chr)
chars.join(' ') + "\n" +
bar_row_string(column)
end
@nurse
nurse / gist:3015253
Last active February 23, 2017 06:00
プログラミングを悟るための公案集

プログラミング公案集

「公案」とは禅で用いられ、なんたら かんたら。 この公案を考えることでオブジェクト指向プログラミングの悟りをなんたらかんたら。

変数

  • Q: 変数とは何か?
  • A: 箱である
  • B: ラベルである
@qnighy
qnighy / tg.md
Created September 14, 2012 14:19