This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'json' | |
require 'cairo' | |
require 'uri' | |
format = Cairo::FORMAT_RGB24 | |
width = 1200 | |
height = 1600 | |
def draw_rects(g, ls) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'json' | |
require 'net/telnet' | |
target_url = "http://www.jewelpet.jp/" | |
prompt = /^repl> / | |
INJECT_JS = <<EOS | |
repl.print( (function(doc){ | |
var _j = function(s) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document url-prefix("http://www.youtube.com") { | |
.homepage-side-block,.ad-div { | |
display: none !important; | |
} | |
#logo { | |
width: 184px !important; | |
height: 35px !important; | |
background: url(http://26.media.tumblr.com/tumblr_laadpmENYK1qz5devo1_250.png) top left !important; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・・・・・・・・ | |
・・・・・・・・ | |
・・・●・・・・ | |
・・・●◯◯・・ | |
・・・●◯◯・・ | |
・・・・・◯・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
gyuque> チャット機能すごい |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・・・・・・・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
・・・◯◯◯・・ | |
・・・●◯・・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
gyuque> チャット機能すごい |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
・・・・・・・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
・・・◯●・・・ | |
・・・●◯・・・ | |
・・・・・・・・ | |
・・・・・・・・ | |
・・・・・・・・ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package canvas | |
import "image" | |
func minmax(a, b int) (min, max int, reversed bool) { | |
if a < b { | |
min = a; | |
max = b; | |
reversed = false; | |
} else { | |
max = a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ("./canvas"; | |
"os"; | |
"math"; | |
"syscall"; | |
"image/png"; | |
"fmt"; | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import re | |
import os | |
import cgi | |
import sys | |
import google.appengine.api.users | |
from google.appengine.ext.webapp.util import run_wsgi_app | |
from google.appengine.ext.webapp import template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import re | |
class ParseTwneruText(object): | |
sleeps = u'寝る 就寝 ねる 寝た ねた'.split() | |
wakes = u'起きた 起床 おきた'.split() | |
time = re.compile(u'([0-9]{1,2})[:時]([0-9]{1,2})') | |
date = re.compile(u'([1-9][0-9]?)日') |