Skip to content

Instantly share code, notes, and snippets.

View suchi's full-sized avatar
👨‍💼

suchi suchi

👨‍💼
View GitHub Profile
#! /your/favourite/path/to/ruby
# -*- coding: utf-8 -*-
# Copyright (c) 2013 Urabe, Shyouhei
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@kentaro
kentaro / gist:1575476
Created January 7, 2012 18:01
今日は何の日?
javascript:(function() {var date=(new Date()); location.href='http://ja.wikipedia.org/wiki/'+(date.getMonth()+1)+'月'+date.getDate()+'日#.E8.A8.98.E5.BF.B5.E6.97.A5.E3.83.BB.E5.B9.B4.E4.B8.AD.E8.A1.8C.E4.BA.8B';})()
@mattsears
mattsears / README.md
Created October 3, 2011 13:16
Todo.rb: A simple command-line TODO manager written in Ruby

Todo.rb

Todo.rb is a simple command-line tool for managing todos. It's minimal, straightforward, and you can use it with your favorite text editor.

Getting Started

Todo.rb doesn't require any third-party gems so you can copy the file anywhere and use it as long as it's executable:

require 'open-uri'
begin
open('http://onlineshop.mb.softbank.jp/ols/html/model/ipad/')
`say "iPad2 online shop page opened!"`
rescue Exception => e
unless e.to_s =~ /^403/
`say "iPad2 online shop status changed #{e}"`
end
end
@kaorun55
kaorun55 / ja.yml
Created April 26, 2011 07:35
redmine_backlogs_ja
# Japanise strings go here for Rails i18n
ja:
backlogs_story_tracker: "ストーリーのトラッカー"
backlogs_task_tracker: "タスクのトラッカー"
backlogs_card_specification: "Label types for card printing"
backlogs_sprints: "スプリント"
field_story_points: "ストーリーポイント"
remaining_story_points: "残りストーリーポイント"
field_remaining_hours: "残り時間"
button_edit_wiki: "Wikiページの編集"

Ruby初級者が中級者に進化するための3の方法

ujihisa

自分のRuby力を測定

Ruby使いのレベル3

This project was moved to https://github.com/tdtds/kindlizer
images = "images"
Dir.mkdir images unless File.exist? images
horesasu = Jigokuno::Misawa.new
horesasu.each { |meigen|
open("%s/%s.gif" % [images, meigen], "w") { |gif|
gif.puts open(meigen.image).read
}
sleep 5