- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
=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') |
# Code adapted from http://bytes.com/topic/c-sharp/answers/240995-normal-distribution#post980230 | |
module Normdist | |
def self.normdist x, mean, std, cumulative | |
if cumulative | |
phi_around x, mean, std | |
else | |
tmp = 1/((Math.sqrt(2*Math::PI)*std)) | |
tmp * Math.exp(-0.5 * ((x-mean)/std ** 2)) | |
end | |
end |
This runs a build for a small elixir (phoenix) project in about 40 seconds by caching as much of the compiled files as possible.
We've been using this for months in multiple projects without any issues. Please ping be if there is any issues with this script and I'll update it.
It should be generic enough to work on any elixir app using mix.
If you have a elixir_buildpack.config
, then enable that section in the build script to keep versions in sync!
2016-08-09: Updated to newer Erlang and Elixir and fixed curl command.