First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel
Then ssh with root account, run this in termianl:
$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash| =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') |
| // All navigation that is relative should be passed through the navigate | |
| // method, to be processed by the router. If the link has a `data-bypass` | |
| // attribute, bypass the delegation completely. | |
| $(document).on("click", "a[href]:not([data-bypass])", function(evt) { | |
| // Get the absolute anchor href. | |
| var href = { prop: $(this).prop("href"), attr: $(this).attr("href") }; | |
| // Get the absolute root. | |
| var root = location.protocol + "//" + location.host + Application.root; | |
| // Ensure the root is part of the anchor href, meaning it's relative. |
| <% flash.each do |type, message| %> | |
| <div class="alert <%= bootstrap_class_for(type) %> fade in"> | |
| <button class="close" data-dismiss="alert">×</button> | |
| <%= message %> | |
| </div> | |
| <% end %> |
| ##Folder structure | |
| /backbone | |
| app.js | |
| /apps | |
| /entities | |
| /lib | |
| ##Inside Apps | |
| /apps |
| #!/usr/bin/env python | |
| ''' | |
| List all available versions of Kindle for Mac and Kindle for PC. | |
| Dependencies: | |
| - asyncio==3.4.3 | |
| - aiohttp==3.6.3 | |
| ''' | |
| import os | |
| import sys |