Skip to content

Instantly share code, notes, and snippets.

View st63jun's full-sized avatar

Jun SAITO st63jun

View GitHub Profile
@ywatai
ywatai / devise.ja.yml
Created February 18, 2013 16:08
devise locale file: Japanese translation (based on en locale def in 2.2.3)
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
ja:
devise:
confirmations:
# confirmed: "Your account was successfully confirmed. You are now signed in."
confirmed: "アカウントの確認が完了しました。ようこそ!"
# send_instructions: "You will receive an email with instructions about how to confirm your account in a few minutes."
send_instructions: "数分でアカウントの確認手順を記載したメールが届きます。"
# send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions about how to confirm your account in a few minutes."
@maepon
maepon / gist:4146627
Created November 26, 2012 04:32
20 Mobile/Desktop Browser bugs and tricks any Senior Frontend Web Developer should know の項目だけでも訳してみる

20 Mobile/Desktop Browser bugs and tricks any Senior Frontend Web Developer should know フロントエンド開発者であれば知っておくべきモバイル/デスクトップブラウザのバグやトリック20

  1. Link outlines / highlights are misaligned on the Kindle Fire
    リンクのアウトライン/ハイライトがKindleFireでずれる
  2. Semantic clearfix without using "clear: both" in another element
    他の要素に"clear: both"を使わないclearfix
  3. Extremely low performance with the Picturefill polyfill
    Picturefill polyfillは非常にパフォーマンスが悪い
  4. 'Multiple Class' CSS selector bug in Internet Explorer 6
    複数ClassのCSSセレクターはIE6でバグる
@katoy
katoy / pandoc-pdf
Created May 4, 2012 03:36
pandoc-pdf: generate pdf using pandoc, markdonw is include kanji.
#!/bin/bash
#
# usage:
# pandoc-pdf 1.md 1.pdf
# generater 1.md -> 1.pdf
# 1.md: utf-8 encoding
#
# How to make TEMPLATEFILE:
# $ pandoc -D latx > template-kanji.latex
# Edit templte-kanji.latex, add
@jwo
jwo / registrations_controller.rb
Created September 30, 2011 23:11
API JSON authentication with Devise
class Api::RegistrationsController < Api::BaseController
respond_to :json
def create
user = User.new(params[:user])
if user.save
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201
return
else
@deoxxa
deoxxa / gist:774161
Created January 11, 2011 07:31
twitter irc bot thing
var tn = require("twitter-node");
var irc = require("irc");
var sys = require("sys");
var client = new irc.Client("irc.wtfirc.com", "FloodBot", { channels: ["#bris2600"] });
client.addListener("message", function(from, to, message) {
sys.puts(from + " => " + to + ": " + message);
});
client.addListener("error", function(error) {
ja:
errors:
messages:
not_found: "は見つかりませんでした"
# not_found: "not found"
already_confirmed: "は既に登録済みです"
# already_confirmed: "was already confirmed"
not_locked: "は凍結されていません"
# not_locked: "was not locked"
@tessro
tessro / redis-server
Created December 16, 2009 14:20
A CentOS initscript for Redis
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis.pid