2015-01-01から1年間の記事一覧

railsのルーティング

この記事がとても分かりやすかった。 http://techracho.bpsinc.jp/hachi8833/2014_03_03/15619

herokuでのDB操作

・レコードの削除 heroku pg:reset DATABASE ・migrate heroku run rake db:migrate ・seed heroku run rake db:seed

bootstrap-datepicker-railsで特定の言語のファイルのみを読み込む

applicetion.jsにこう書くと、 //= require bootstrap-datepicker/ こんな風に60言語分くらいの全てのファイルを読み込んで重い。 こんな風にcoreと必要な言語のファイルを指定すると読み込むファイルを絞り込むことができる。 //= require bootstrap-datepi…

deviseの日本語化とかBootstrap対応とか

http://rubyandrails.hatenablog.com/entry/devise-bootstrap-japanese ここ参考になります

mysqlの起動

mysql.server start

play,ebeanでorを書く

http://cerulean.hatenablog.com/entry/2014/05/08/151822 .where().or(Expr.eq("title", title), Expr.eq("name", name))

rails production

bundle exec rake assets:precompile RAILS_ENV=production export SECRET_KEY_BASE=`bundle exec rake secret` http://qiita.com/a_ishidaaa/items/74de8bdaecd637063c40

react

http://react-bootstrap.github.io/ https://rackt.github.io/react-router/ http://qiita.com/Peranikov/items/ba6f31a88139543db6b8

railsでdatepicker

https://github.com/eternicode/bootstrap-datepicker

MA by Mashup Awardsmashupaward.jp

https://ruby5.codeschool.com/ http://rubyweekly.com/

emacsでrubyを書く時文字コードのマジックコメントを追加させない方法

~/.emacs.d/init.elに以下の一文を追加 (setq ruby-insert-encoding-magic-comment nil)

http://englishdrill.herokuapp.com/

zip暗号化

zip -e -r test.zip ./test

historyの設定

# 履歴ファイルの保存先export HISTFILE=${HOME}/.zsh_history # メモリに保存される履歴の件数export HISTSIZE=1000 # 履歴ファイルに保存される履歴の件数export SAVEHIST=100000 # 重複を記録しないsetopt hist_ignore_dups # 開始と終了を記録setopt EXT…

gem をオフラインでインストールする方法 - presenttnakamura.hatenablog.com

rbenvでのrubyバージョンアップ簡易メモ - Qiitaqiita.com rubyのversion upをした時の作業内容メモ - まっしろけっけshiro-16.hatenablog.com

ブランチの統合【ブランチ】 | サルでもわかるGit入門 〜バージョン管理を使いこなそう〜 | どこでもプロジェクト管理バックログwww.backlog.jp

http://www.google.com/design/spec/style/color.html# https://github.com/facebook/flux/blob/master/docs/img/flux-diagram-white-background.png https://github.com/rails/jbuilder

http://www.sonicgarden.jp/20150512_sakanatouch

emacsでjsxの設定

(require 'jsx-mode)(add-to-list 'auto-mode-alist '("\\.jsx\\'" . jsx-mode))(setq jsx-indent-level 2)(add-hook 'jsx-mode-hook '(lambda () (electric-indent-local-mode -1)))

macでカーソルの動きを速くする

https://pqrs.org/osx/karabiner/index.html.ja

https://github.com/glenjamin/react-calendar/blob/master/CalendarMonth.jsx https://lodash.com/

http://stackoverflow.com/questions/20317932/displaying-image-object-from-controller-in-the-browser

Postgreを入れる

http://qiita.com/_daisuke/items/13996621cf51f835494b

OneToManyとかManyToManyで持ってるlistをorderbyする

import javax.persistence.OrderBy; @ManyToMany @OrderBy("createdDate Desc") public List blogs;

moment.js

http://qiita.com/ue5963/items/729c76fe5b821e5c504e http://blog.asial.co.jp/1158

~/Applications/rails_apps/captionner (master)% rails server -b 192.168.11.24 ~/Applications/squall (master) <U>% thor server:start ~/Applications/squall/api (master) <U>% tail -f log/development.log ~/Applications/squall/ws (master) <U>% tail -f lo</u></u></u>…

http://tsuchikazu.net/active_record_single_use/

h2-browser http://nilfigo.hatenablog.com/entry/2013/09/10/173552