タグ

2015年4月24日のブックマーク (3件)

  • react-problems.md

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    react-problems.md
    uehaj
    uehaj 2015/04/24
  • UNIXシェルスクリプトメモ(Hishidama's UNIX shell script Memo)

    -xを付けると実行内容を表示しながら実行する。[2008-11-29] bash -x スクリプトファイル -nを付けると、実行せずにファイル内の構文解析(エラーの有無のチェック)を行う。[2008-11-29] bash -n スクリプトファイル . スクリプトファイル 現在実行中のシェルと同じシェルを使ってスクリプトを実行する。 スクリプトの中で環境変数を設定した場合、現在のシェルの環境にも影響する (スクリプトの中で定義した環境変数が実行元でも有効になる)。 ファイルに実行権限(chmod +x)が付いている場合は、以下のようにして実行できる(相対パスで指定している)。 ./スクリプトファイル ファイルに実行権限(chmod +x)が付いており、かつ環境変数PATHにカレントディレクトリ「.」が含まれている場合は、以下のようにして実行できる。 スクリプトファイル シェルスクリプトの書

    uehaj
    uehaj 2015/04/24
    しらんかった "kshやbashの場合「$(コマンド)」はバッククォート指定と同じ。$()が使えるシェルならバッククォートよりも$()を使うべき(バッククォートは古い形式であり、ネストできないし、開始と終了もまぎらわしい)"
  • Making a domain non-persistent | TO THE NEW Blog

    In grails app, there might come scenarios where one need to create a non-persistent domain rather than creating a command obejct or POJO / POGO. GORM comes with a handy static property mapWith which has default value GORM (which associates any domain with gorm persistence layer). To make a domain non persistent set mapWith=”none”. For example, see Ticket domain below [code lang=”groovy”] public cl

    Making a domain non-persistent | TO THE NEW Blog
    uehaj
    uehaj 2015/04/24
    rest APIやなんかでDBに永続化しないドメインをつかうとき、command objectより優れた方法 static mapWith = "none"