This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>BBS一覧</title> | |
</head> | |
<body> | |
<h1>ひとこと掲示板</h1> | |
<div id="form"> | |
<form action="/" method="post"> |
This file contains 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
class Interpret | |
def initialize | |
@handlers = [] | |
return self | |
end | |
def on(regexp, &process) | |
handler = { regexp: regexp, proc: process } | |
@handlers << handler |
This file contains 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
PANDOC = pandoc | |
PLATEX = platex | |
DVIPDFMX = dvipdfmx | |
CONVERT = convert | |
INKSCAPE = inkscape | |
OPTIONS = -s -N --no-highlight --variable=documentclass:jreport --variable=papersize:a4j | |
TOFORMAT = -t latex | |
PDFNAME = 1st_report.pdf | |
DVINAME = 1st_report.dvi | |
TEXNAME = 1st_report.tex |
This file contains 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
new Base ----------------- | |
Base Constructor | |
Base Destructor: Address is 0x241a010. Size is 8. | |
new Derived -------------- | |
Base Constructor | |
Derived Constructor | |
Derived Destructor: Address is 0x241a010. Size is 24. | |
Base Destructor: Address is 0x241a010. Size is 8. |
This file contains 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
Plugin.create :multi_fav do | |
def service_select_dialog | |
dialog = Gtk::Dialog.new( | |
nil, | |
nil, | |
Gtk::Dialog::DESTROY_WITH_PARENT, | |
['Favorite', Gtk::Dialog::RESPONSE_OK], | |
['Favorite', Gtk::Dialog::RESPONSE_CANCEL] | |
) |
This file contains 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 -*- | |
Plugin.create :multi_timeline do | |
Service.services.each do |svc| | |
timeline_name = "home_timeline_#{svc.idname}".to_sym | |
tab timeline_name, "Home Timeline" + " (#{svc.idname})" do | |
set_icon svc.user_obj[:profile_image_url] | |
timeline timeline_name end |
This file contains 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
v 20130925 2 | |
B 0 0 2300 4100 3 0 0 0 -1 -1 0 -1 -1 -1 -1 -1 | |
P 2100 500 2200 500 1 0 0 | |
{ | |
T 2100 500 5 10 0 0 180 6 1 | |
pintype=unknown | |
T 2205 645 5 10 1 1 0 6 1 | |
pinnumber=1 | |
T 2100 500 5 10 0 0 180 6 1 | |
pinseq=0 |
This file contains 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 'net/http' | |
class Yo | |
API_URI = URI.parse('http://www.justyo.co/yoall/') | |
def initialize(api_token) | |
@token = api_token | |
end | |
def yo |
This file contains 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
# do amida | |
def amida(matrix, pos) | |
matrix.each{|row| | |
if row[pos-2] == "-" && pos > 1 then pos -= 1 | |
elsif row[pos-1] == "-" && pos < 8 then pos += 1 | |
end | |
} | |
return pos | |
end |
This file contains 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 -*- | |
require 'net/http' | |
require 'json' | |
require 'nokogiri' | |
print "Type username > " | |
username = gets.delete(" \n\r\t") | |
images = [] | |
page = 1 |