前提: scalaとplayはbrewでインストール済み
$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
- Intellij IDEAでプロジェクトを開く
- Play 2 のコメント欄の Ignore をクリック
var k = [1, 2] // [1, 2] | |
var l = k // [1, 2] | |
var j = l // [1, 2] | |
l[1] = 3 | |
k // [1, 3] | |
l // [1, 3] | |
j // [1, 3] | |
l.append(5) | |
k // [1, 3] | |
l // [1, 3, 5] |
$(someMyOneDiv).on('inview', function(e, isInView, visiblePartX, visiblePartY) { | |
var elem = $(this); | |
if (elem.data('inviewscroller')) { | |
elem.off('scroll.inview'); | |
elem.removeData('inviewscroller'); | |
} | |
if (isInView) { | |
elem.data('inviewscroller', true); |
cat trelloCard.json | jq '.actions[].data | select(has("text")) | .text' |
gem install middleman | |
gem install middleman-slim | |
gem install stylus | |
middleman init foo -T slim | |
cd foo | |
vi Gemfile | |
+ gem "stylus" | |
vi config.rb | |
+ require 'slim' |
set ignorecase | |
set smartcase | |
"カーソル位置の単語をyankする | |
nnoremap vv vawy | |
"Insert mode内でEmacsキーバインドを少々使う | |
inoremap <C-o> <Esc>o | |
inoremap <C-h> <BS> |
前提: scalaとplayはbrewでインストール済み
$ cd $$PROJECT_DIR$$
$ rm -rf .idea .idea_modules
$ play
[PROJECT_NAME] $ compile
[PROJECT_NAME] $ idea no-fsc no-sbt-build-module
cd /some/where
vagrant init <boxName>
vagrant up
vagrant ssh-config --host <hostName> >> ~/.ssh/config
knife solo init <repoName>
cd <repoName>
git init
git add .
#!/bin/sh | |
# usage: | |
# $ curl -O https://gist.github.com/pesblog/6351740/raw/chef-setup.sh | |
# $ chmod 755 chef-setup.sh | |
# $ ./chef-setup.sh | |
if [[ -d '/opt/chef' ]]; then | |
echo "chef exists, already installed. finish" | |
exit 0 |
#!/bin/sh | |
# usage: | |
# $ curl -O https://gist.github.com/pesblog/6351515/raw/vagrant-setup.sh | |
# $ chmod 755 vagrant-setup.sh | |
# $ ./vagrant-setup.sh | |
finally() { | |
RET=$? |
set nocompatible " be iMproved | |
filetype off " required! | |
set rtp+=~/.vim/vundle/ | |
call vundle#rc() | |
" let Vundle manage Vundle | |
" required! | |
Bundle 'gmarik/vundle' |