Skip to content

Instantly share code, notes, and snippets.

Avatar

Sorah Fukumori sorah

View GitHub Profile
View NoLectureNotifier.rb
#-*- coding: euc-jp -*-
require 'rubygems'
require 'mechanize'
require 'kconv'
require "./tlsmails.rb"
class NoLectureInformation
def initialize(h={})
@h = h
unless h.key?(:date) && h.key?(:time) \
View delete.rb
#-*- coding: utf-8 -*-
require 'net/http'
require 'uri'
require 'json'
Net::HTTP.version_1_2
def chirp(id, pass)
uri = URI('http://chirpstream.twitter.com/2b/user.json')
buf = ""
View ex.html
<HTML>
<BODY>
<FORM METHOD='POST' ACTION='../servlet/jp.ac.keio.ess.adst.servlet.view.NoLectureCheckServlet?param=adst'>
<TABLE ALIGN='Center'>
<TR><TD><DIV CLASS='DispTitle'>休講・補講情報 確認画面</DIV></TD>
<TD><DIV CLASS='DispTitle'></DIV></TD></TR>
</TABLE>
<BR>
<DIV CLASS='NotandumMessage'>(注意) 掲示板の休講情報/補講情報も確認してください。</DIV>
View gist:349027
[10/03/30 20:27:53] &ujihisa25: 会話が聞こえそうでぎりぎり聞こえない
[10/03/30 20:27:56] &ujihisa25: hi
[10/03/30 20:27:59] Sora HARAKAMI: hi
[10/03/30 20:28:02] &ujihisa25: hi
[10/03/30 20:28:03] EricSartre/DaikiKawakami: ひ
[10/03/30 20:28:04] Sora HARAKAMI: hi
[10/03/30 20:28:07] &ujihisa25: hi
[10/03/30 20:28:08] Sora HARAKAMI: hi
[10/03/30 20:28:10] shinlinsui: hi
[10/03/30 20:28:10] daiki: hi
View ninenine.rb
puts (1..9).map{|i| (1..9).map{|j| "#{i} * #{j} = #{i*j}" }.join("\n") }.join("\n")
View gist:302318
諸君 私は補完が好きだ
諸君 私は補完が好きだ
諸君 私は補完が大好きだ
手動補完が好きだ 自動補完が好きだ インテリセンスが好きだ 部分マッチが好きだ
シェルが好きだ 予測補完が好きだ オムニ補完が好きだ
Vimで Emacsで zshで
Visual Studioで ATOKで Eclipseで
View vim.cgi
#!/usr/bin/env ruby
"
execute 'help' getline(1)
.,/\*\S\+\*$/?\S?print
qa!
"
require 'rubygems'
require 'json'
require 'cgi'
You can’t perform that action at this time.