Skip to content

Instantly share code, notes, and snippets.

Sorah Fukumori sorah

Block or report user

Report or block sorah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View vim.cgi
#!/usr/bin/env ruby
"
execute 'help' getline(1)
.,/\*\S\+\*$/?\S?print
qa!
"
require 'rubygems'
require 'json'
require 'cgi'
View gist:302318
諸君 私は補完が好きだ
諸君 私は補完が好きだ
諸君 私は補完が大好きだ
手動補完が好きだ 自動補完が好きだ インテリセンスが好きだ 部分マッチが好きだ
シェルが好きだ 予測補完が好きだ オムニ補完が好きだ
Vimで Emacsで zshで
Visual Studioで ATOKで Eclipseで
View ninenine.rb
puts (1..9).map{|i| (1..9).map{|j| "#{i} * #{j} = #{i*j}" }.join("\n") }.join("\n")
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 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 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 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 gist:573131
100.times{|i|s=(i%3==0?"Fizz":'')+(i%5==0?"Buzz":'');puts s==""?i:s}
View gist:719566
#encoding: utf-8
require 'nokogiri'
require 'net/irc'
BOTNICK = "Glass_bot"
class TCEBot < Net::IRC::Client
def initialize(*args)
super
View srv2.rb
#encoding: utf-8
require 'nokogiri'
require 'net/irc'
BOTNICK = "Glass_bot"
class TCEBot < Net::IRC::Client
def initialize(*args)
super
You can’t perform that action at this time.