all suggestions are welcome => @junya
- Digg
- Shirt, Bag, Hoodie, Cap, Blanket, Umbrella, Apron, Dog T-Shirt
- Dribbble
- Shirt
- Foursquare
<?php | |
$foo = array(); | |
$a = array(1,2,3); | |
$b = array(4,5,6); | |
$foo += $a; | |
$foo += $b; | |
print_r($foo); | |
?> | |
// result |
all suggestions are welcome => @junya
require 'date' | |
class Date | |
def weekday? | |
(1..5).include?(wday) | |
end | |
end |
production: | |
dsn: <%= ENV['DATABASE_URL'] || ENV['DUOSTACK_DB_MYSQL'] %> | |
development: | |
dsn: mysql://root:@localhost/lokka | |
test: | |
dsn: sqlite3://<%= root %>/db/test.sqlite3 |
require 'rubygems' | |
require 'sinatra' | |
require 'oauth2' | |
require 'json' | |
configure :production do | |
@@client = OAuth2::Client.new( | |
'xxxxxxxxxxxxx', | |
'xxxxxxxxxxxxxxxxxxxxxxxx', | |
:site => 'https://graph.facebook.com' |
- 北海道 | |
- 青森県 | |
- 岩手県 | |
- 宮城県 | |
- 秋田県 | |
- 山形県 | |
- 福島県 | |
- 茨城県 | |
- 栃木県 | |
- 群馬県 |
(function($){ | |
$.fn.insertAtCaret = function(v) { | |
var o = this.get(0); | |
o.focus(); | |
if ($.browser.msie) { | |
var r = document.selection.createRange(); | |
r.text = v; | |
r.select(); | |
} else { | |
var s = o.value; |
#!/usr/bin/env ruby | |
require 'fileutils' | |
def e(path) path.gsub(/[ ()]/) {|s| "\\#{s}"} end | |
FileUtils.rm_rf("#{ENV['HOME']}/.macapp") | |
FileUtils.mkdir("#{ENV['HOME']}/.macapp") | |
Dir.glob('/Applications/{,Utilities/}*.app') do |path| |
# coding: UTF-8 | |
Earthquake.init do | |
output do |item| | |
`saykotoeri "#{item['user']['screen_name']}。#{item['text']}"` | |
end | |
end |
ja: | |
errors: | |
messages: | |
not_found: "は見つかりませんでした。" | |
already_confirmed: "は既に登録済みです。" | |
not_locked: "はログイン可能です。" | |
devise: | |
failure: | |
unauthenticated: 'ログインしてください。' |