Skip to content

Instantly share code, notes, and snippets.

@tanaka51
tanaka51 / get_emoj.js
Created October 2, 2012 07:40
Getting emoji code from using on http://www.emoji-cheat-sheet.com/
var emojis = "";
$('span.emoji').each(function(){
emojis = emojis + " " + $(this).parent().text();
});
alert(emojis);
@tanaka51
tanaka51 / shibuya-el-position-paper.md
Created August 24, 2012 00:26 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

  • 名前(任意)

    • 田中 光一
  • Twitter

  • @tanaka51

@tanaka51
tanaka51 / rspec-syntax-cheat-sheet.rb
Created April 26, 2012 10:13 — forked from irohiroki/rspec-syntax-cheat-sheet.rb
RSpec 2 syntax cheat sheet by example
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
@tanaka51
tanaka51 / gist:1598915
Created January 12, 2012 05:14
Passenger error on CentOS 5.6, Apache2
[Wed Jan 11 01:59:59 2012] [error] *** Passenger could not be initialized because of this error: Unable to start the Phusion Passenger watchdog: it seems to have crashed during startup for an unknown reason, with exit code 1
[Wed Jan 11 01:59:59 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Jan 11 01:59:59 2012] [notice] Digest: done
[ pid=16082 thr=3086060128 file=ext/apache2/Hooks.cpp:1378 time=2012-01-11 01:59:59.922 ]: Initializing Phusion Passenger...
[ pid=16084 thr=3086673616 file=ext/common/Watchdog.cpp:1073 time=2012-01-11 01:59:59.927 ]: Cannot change the directory '/tmp/passenger.1.0.16082/generation-0/buffered_uploads' its UID to 48 and GID to 48: Operation not permitted (1)
in 'void Passenger::ServerInstanceDir::Generation::create(bool, const std::string&, const std::string&, uid_t, gid_t)' (ServerInstanceDir.h:76)
@tanaka51
tanaka51 / error
Created December 16, 2011 05:05
Ruby 1.9.3-p0, Rails 3.1.3, bundle install で発生
$ gem install mysql2 -v '0.3.11' git:master*
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/Users/koichi/.rvm/rubies/ruby-1.9.3-p0/bin/ruby extconf.rb
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... yes
checking for mysql.h... yes
checking for errmsg.h... yes
gulp = require 'gulp'
util = require 'gulp-util'
coffee = require 'gulp-coffee'
sass = require 'gulp-sass'
slim = require 'gulp-slim'
plumber = require 'gulp-plumber'
COFFEE_FILES = './src/coffee/**/*.coffee'
gulp.task 'coffee', ->
[user]
name = Koichi TANAKA
email = tanaka51.jp@gmail.com
[core]
excludesfile = ~/.gitignore
[init]
templatedir = /Users/tanaka51/.git_templates
[ghq]
root = /Users/tanaka51/src
[alias]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AdjustWindowForFontSizeChange</key>
<true/>
<key>AllowClipboardAccess</key>
<true/>
<key>AnimateDimming</key>
<false/>
@tanaka51
tanaka51 / .vimrc
Last active August 29, 2015 14:22
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'altercation/vim-colors-solarized'
Plugin 'bronson/vim-trailing-whitespace'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'glidenote/memolist.vim'
# mode
set -g mode-keys vi
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# default shell
set -g default-shell /usr/local/bin/zsh
# prefix
set -g prefix C-z