ぐんまRuby会議01参加者のためのしおりです。
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace Sample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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
#http://icpc2010.honiden.nii.ac.jp/domestic-contest/problems#section_A | |
class Kaku | |
def initialize(paterns) | |
@paterns = paterns | |
end | |
def ans | |
return "1 1" if @paterns.empty? | |
coordinates = @paterns.inject([[0, 0]]) do |c, p| | |
i = c[p[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
# config.ru | |
require 'rack' | |
require 'gdk_pixbuf2' | |
class AvatarClone | |
def call(env) | |
request = Rack::Request.new(env) | |
case request.request_method | |
when 'GET' | |
begin |
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 'gtk2' | |
class CountdownTimer | |
def initialize(minutes, &block) | |
@default_block = block | |
reset(minutes, &block) | |
end | |
def expected_time |
時間 | |
---|---|
11:00 | 受付開始 |
11:30 | 登利平が届く |
12:40 | 講演者接続チェック |
会議開始 | |
13:00-13:05 | オープニング |
13:05-13:40 | Yuguiさん講演 最後5分は質疑応答 |
13:40-13:50 | 休憩 |
13:50-14:15 | 須藤さん講演 最後5分は質疑応答 |
- Yuguiさん
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
def kanagawa(str) | |
f = str.scan(/[0-9]+|[^0-9]/) | |
['|', '&', '+', '*'].each do |op| | |
while(i = f.index(op)) do | |
f[(i - 1)..(i + 1)] = eval(f[(i - 1)..(i + 1)].join('')) | |
end | |
end | |
f[0] | |
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
require 'open-uri' | |
require 'open_uri_redirections' | |
require 'soundcloud' | |
OUTDIR = 'user48736353001' | |
Dir.mkdir(OUTDIR) unless Dir.exists? OUTDIR | |
def save(title, download_url) | |
puts title | |
file_name = "#{OUTDIR}/#{title}.mp3" |
OlderNewer