Skip to content

Instantly share code, notes, and snippets.

View tmd45's full-sized avatar

Yoko TAMADA tmd45

View GitHub Profile
@tmd45
tmd45 / .vimrc
Created April 23, 2017 04:54
vimrc for server
set nocompatible
sy on
set hidden
set autoread
set autoindent
set expandtab
set list
set listchars=eol:$,tab:^\ ,extends:>,precedes:<
@tmd45
tmd45 / gist:1369167
Created November 16, 2011 03:34
MITライセンス表示文章の雛形(英語+日本語)
The MIT License
Copyright (c) {year} {copyright holders}
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T
@tmd45
tmd45 / onthisday.sh
Created February 3, 2016 04:01
Qiita:Team で一年前の投稿を検索表示する。nkf コマンド必要
#!/bin/sh -e
echo "NOTE: I need command nkf. please 'brew install nkf'."
echo "NOTE: I'll open a result in browser."
echo ""
printf "Your Qiita:Team? (only subdomain) : "
read subdomain
printf "Who are you? : "
read userid
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
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 関連

@tmd45
tmd45 / gist:5443205
Last active December 16, 2015 13:39
at Windows7 with Ruby2.0
> gem install sqlite3
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
C:/Ruby200x64/bin/ruby.exe extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***