Skip to content

Instantly share code, notes, and snippets.

View tmd45's full-sized avatar

Yoko TAMADA tmd45

View GitHub Profile
@tmd45
tmd45 / convert.rb
Last active August 29, 2015 14:13
Convert to Zenkaku | Hankaku test
require 'nkf'
class Convert
def self.to_han(text)
puts "----- to_han -----"
print_cp(text)
text = NKF.nkf('-wZ0', text)
print_cp(text)
end
@tmd45
tmd45 / Gemfile
Last active August 29, 2015 14:02
nippo.rb; refs. Githubで今日なにをしたか、調べるスクリプトを書いた - きたけーTechブログ http://kitak.hatenablog.jp/entry/2014/04/22/013849
source 'https://rubygems.org'
ruby '2.1.5'
gem 'i18n'
gem 'activesupport'
gem 'octokit'
@tmd45
tmd45 / termcolor.rb
Created April 17, 2014 12:46
ターミナルで使える色と色番号を一覧にする ref: http://qiita.com/tmd45/items/226e7c380453809bc62a
# -*- coding: utf-8 -*-
@fg = "\x1b[38;5;"
@bg = "\x1b[48;5;"
@rs = "\x1b[0m"
def color(code)
number = '%3d' % code
"#{@bg}#{code}m #{number}#{@rs}#{@fg}#{code}m #{number}#{@rs} "
end
module NokogiriUtils
extend self
# http://gist.github.com/370755
def hash_from_node(node)
{ node.root.name.to_sym => xml_node_to_hash(node.root) }
end
def xml_node_to_hash(node)
return to_value(node.content.to_s) unless node.element?
@tmd45
tmd45 / 0_reuse_code.js
Created October 9, 2013 05:28
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
tmd45@tmd45mac $ brew list --versions
autoconf 2.69
cmake 2.8.11.2
gdbm 1.10
git 1.8.3.4
openssl 1.0.1e
pcre 8.33
pkg-config 0.28
rbenv 0.4.0
readline 6.2.4
@tmd45
tmd45 / gist:5929220
Created July 4, 2013 17:24
brewでインストールしたrubyからrbenvのに切り替え
tmd45@tmd45mba $ rbenv versions
* system (set by /Users/tmd45/.rbenv/version)
1.9.3-p448
2.0.0-p247
tmd45@tmd45mba $ rbenv global 1.9.3-p448
tmd45@tmd45mba $ rbenv versions
system
* 1.9.3-p448 (set by /Users/tmd45/.rbenv/version)
2.0.0-p247
@tmd45
tmd45 / gist:5882188
Created June 28, 2013 03:02
Gist で Todo が作れると聞いて(遅) https://github.com/blog/1542-task-lists-in-gist
  • 牛乳を買う
  • 卵を買う
  • 食パン(6枚切り)を買う
  • フライパンを買う
  • ボールを買う
  • フレンチトーストを作る
  • フレンチトーストを食べる
  • そんなことよりおうどん食べたい
vim-surround
vim-endwise
unite-rake
ruby-matchit
unite.vim
unite-reek
vim-rspec
unite-rails_best_practices
tcomment_vim
vim-ref

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

Composer

Composer 関連