Create droplet of your liking (ubuntu 12.10 x32)
ssh to root in terminal with your server ip
ssh root@123.123.123.123
Add ssh fingerprint and enter password provided in email
| # configuration for osx clipboard support | |
| set-option -g default-command "reattach-to-user-namespace -l sh" |
| class EventsHelperTest < ActionView::TestCase | |
| def setup | |
| country = Country.create(name: 'Belarus') | |
| state = State.create(name: 'Minsk') | |
| @event = Event.create(country: country, state: state, name: 'Drinking bear') | |
| end | |
| def test_url_for | |
| n = 10000 | |
| Benchmark.bmbm do |x| |
| # MySQL. Versions 4.1 and 5.0 are recommended. | |
| # | |
| # Install the MySQL driver: | |
| # gem install mysql2 | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: | |
| adapter: mysql2 | |
| encoding: utf8 |
| require 'benchmark' | |
| N = 1_000_000 | |
| puts RUBY_VERSION | |
| STR = "[12,23,987,43" | |
| Benchmark.bm(7) do |b| | |
| b.report('[0]') { N.times { "[12,23,987,43"[0] = '' } } |
| /** | |
| * | |
| * usage: $('#select-container').nested({url:'/path/to/backend/which/returns/options/'}) | |
| * | |
| */ | |
| (function($){ | |
| $.fn.extend({ | |
| //pass the options variable to the function | |
| nested: function(options) { | |
| //Set the default values |
| require "benchmark/memory" | |
| class A | |
| def self.class_method | |
| puts 'hello' | |
| end | |
| def instance_method | |
| puts 'hello' | |
| end | |
| end |