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
#android pattern auth | |
#0 1 2 | |
#3 4 5 | |
#6 7 8 | |
$constraints = [ | |
{2 => 1, 8 => 4, 6 => 3}, #0 | |
{7 => 4}, #1 | |
{0 => 1, 6 => 4, 8 => 5}, #2 |
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 Object | |
def eigenclass | |
class << self | |
self | |
end | |
end | |
end | |
module Util | |
module_function |
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: Windows-31J | |
module FixedLayoutMapper | |
class Mapper | |
class ColumnMapper | |
attr_accessor :layout_mapper, :converter | |
def initialize(layout_mapper, converter = nil) | |
@layout_mapper = layout_mapper | |
@converter = converter | |
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
var BASIC_AUTH_USER = "tomcat"; | |
var BASIC_AUTH_PASS = "tomcat"; | |
var URL_PREFIX = "http://localhost:8080"; | |
//------------------------------------------------------------ | |
var HTTPREQUEST_SETCREDENTIALS_FOR_SERVER = 0; | |
var adTypeBinary = 1; | |
var adSaveCreateOverWrite = 2; |
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
var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
function with_openfile(path, action) { | |
var f = null; | |
try { | |
f = fso.openTextFile(path); | |
return action(f); | |
} finally { | |
if (f) { | |
f.close(); |
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: Windows-31J | |
require 'win32ole' | |
require 'date' | |
$ROUND_MIN = 15 | |
module ExcelConstants | |
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
#https://gist.github.com/4051188 用のテストデータ | |
require 'date' | |
def by_min | |
Rational(1, 1440) #24 * 60 | |
end | |
def gen_range | |
ret = [] | |
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 "graphviz" | |
#http://www.graphviz.org/Download_windows.php | |
g = GraphViz::new("G", { :type => "digraph", :use => "dot"}) | |
depends = { | |
1 => [], | |
2 => [1], | |
3 => [1], |
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 'socket' | |
class SMTPParameters | |
attr_accessor :helo_name, :from, :rcpt, :data | |
def initialize | |
@helo_name = nil | |
@from = nil | |
@rcpt = [] | |
@data = nil | |
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
#encoding: Windows-31J | |
# 3行5列のマスを塗っていくパターンは | |
# ある列がそれより左の列の1行目が塗られている場合のみ塗れるので、 | |
# ・1列目だけ塗るパターン | |
# ■ | |
# □ | |
# □ | |
# | |
# ・2列めまで塗るパターン | |
# ■■ |
OlderNewer