Skip to content

Instantly share code, notes, and snippets.

View closer's full-sized avatar
🦄
404

closer closer

🦄
404
View GitHub Profile
require 'net/http'
require 'uri'
require 'rubygems'
require 'json'
module Twitter
class UserStreams
BASE_URI = URI.parse('http://chirpstream.twitter.com/')
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">
<title>Text Shadow</title>
</head>
<body>
<p id="text" style="text-align:center;line-height:120px;virtical-align:bottom;">HTML5(CSS3)</p>
<script type="text/javascript">
16:01 < reudy> 御茶ノ水博士にツクテモロタ
16:01 < strato335> まじでw
16:02 < reudy> まじか
16:02 < strato335> closerにつくてもろたんじゃないの?
16:04 <@closer> ツクテモロタwww
16:05 < reudy> いやおかしくないから
16:06 <@closer> ごめん
16:06 < reudy> ツクテモロタ
16:06 < strato335> バロスwwwwwwwwwwww
16:01 < reudy> 御茶ノ水博士にツクテモロタ
16:01 < strato335> まじでw
16:02 < reudy> まじか
16:02 < strato335> closerにつくてもろたんじゃないの?
16:04 <@closer> ツクテモロタwww
16:05 < reudy> いやおかしくないから
16:06 <@closer> ごめん
16:06 < reudy> ツクテモロタ
16:06 < strato335> バロスwwwwwwwwwwww
["", nil, false, 0].each do |obj|
p obj
%w|blank? nil? empty?|.each do |name|
puts "#{obj.class}##{name}\n #{obj.methods.include?(name) ? obj.send(name) : 'No'}"
end
puts("-" * 20)
end
require "rubygems"
require "highline"
require "mechanize"
hl = HighLine.new
email = hl.ask('E-mail: ')
password = hl.ask('Password: '){|q| q.echo = '*'}
filename = ARGV.first
<!--
Tumblr Theme include Google Analytics
-->
<meta name="text:Google Analytics" content=""/>
{block:IfGoogleAnalytics}
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
<!DOCTYPE html>
<html lang="ja">
<head>
<title>CSS3</title>
<style type="text/css">
ul.menu {
margin:0;
padding:0;
width:30.0em;
list-style:none;
#!/usr/bin/ruby
$KCODE = "u"
require "cgi"
require "kconv"
require "rubygems"
require "rmagick"
include Magick
module Kernel
def fizzbuzz limit=100
(0..limit).each {|n| puts n.to_fizzbuzz }
end
end
class Integer
def is_fizz?
self % 3 == 0
end