{
"message" => "hello world",
"@version" => "1",
"@timestamp" => "2014-04-22T23:03:14.111Z",
"type" => "stdin",
"host" => "hello.local"
}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val appWithMemoryDatabase = FakeApplication(additionalConfiguration = inMemoryDatabase("test")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
| sudo dpkg -i scala-2.11.7.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
| sudo dpkg -i scala-2.11.7.deb | |
| sudo wget https://bintray.com/artifact/download/sbt/debian/sbt-0.13.9.deb | |
| sudo dpkg -i sbt-0.13.9.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| simple steps to clojure cascalog | |
| is ~/bin in your $PATH | |
| at term type: echo $PATH | |
| if not there add this to .bash_profile: | |
| export PATH=$HOME/bin:$PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| log_level :info | |
| log_location STDOUT | |
| #cookbook_path ['./cookbooks'] | |
| cache_type 'BasicFile' | |
| cache_options( :path => '~/.chef/checksums' ) | |
| cookbook_path [ './cookbooks', './site-cookbooks' ] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find and delete: | |
| find . -type f -size +10000k -exec ls -lh {} \; | awk '{cmd="rm " $9; print cmd; system(cmd) }' | |
| or | |
| just find and print: | |
| find . -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. subject: | |
| Use subject for creating the subject. Named subjects should be preferred unless | |
| used only implicitly thereafter | |
| i.e.: | |
| subject(:user) { create(:user) } | |
| where "user.bar" will be preferred over "subject.bar" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tests add value through: | |
| 1. Reducing costs | |
| 2. Increasing communication | |
| 3. Find bugs, document behaviour (contracts, stories), defer design decisions | |
| Behaviour-Driven Development is development through | |
| describing behavior: | |
| Where behavior is: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
NewerOlder