2014-11-03から1日間の記事一覧

GitHubのレポジトリをコマンドラインから開く

http://jasonneylon.wordpress.com/2011/04/22/opening-github-in-your-browser-from-the-terminal/ 以下を/usr/local/bin/github-openに保存 giturl=$(git config --get remote.origin.url) if [ "$giturl" == "" ] then echo "Not a git repository or no …

GitHubのレポジトリをコマンドラインから作る

http://viget.com/extend/create-a-github-repo-from-the-command-line 以下を/usr/local/bin/github-createに保存 curl -u "YOUR_USERNAME:YOUR_PERSONAL_TOKEN" https://api.github.com/user/repos -d '{"name":"'$1'"}'

RでSQLite3を使う

dbname="hogehoge.db" library(RSQLite) driver=dbDriver("SQLite") con=dbConnect(driver,dbname) tbl <- dbReadTable(con,"hogeTableName")

Rails4のコンテンツをiframeで呼び出すときにSAMEORIGINエラーを回避する

http://stackoverflow.com/questions/16561066/ruby-on-rails-4-app-not-works-in-iframe config/application.rb config.action_dispatch.default_headers = { 'X-Frame-Options' => 'ALLOWALL' }