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| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: unicorn | |
| # Required-Start: $all | |
| # Required-Stop: $network $local_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: starts the unicorn instances | |
| # Description: starts the unicorn server instances using start-stop-daemon | |
| # |
| ;; HipChat | |
| (setq ssl-program-name "gnutls-cli" | |
| ssl-program-arguments '("--insecure" "-p" service host) | |
| ssl-certificate-verification-policy 1) | |
| ;; Connect using jabber.el | |
| ;; M-x jabber-connect <RET> | |
| ;; Config |
| function onOpen() { | |
| var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
| var menuEntries = [ {name: "Run Query", functionName: "runQuery"} ]; | |
| ss.addMenu("HTTP Archive + BigQuery", menuEntries); | |
| } | |
| function runQuery() { | |
| var projectNumber = 'httparchive'; | |
| var sheet = SpreadsheetApp.getActiveSheet(); |
| All of these resources were extremely valuable as I researched regex, finite state machines, and regex in Ruby. Check them out, they're full of fantastic information! | |
| Articles | |
| "Exploring Ruby's Regular Expression Algorithm" by Pat Shaughnessy | |
| http://patshaughnessy.net/2012/4/3/exploring-rubys-regular-expression-algorithm | |
| "Finite State Machines and Regular Expressions" by Eli Bendersky | |
| http://www.gamedev.net/page/resources/_/technical/general-programming/finite-state-machines-and-regular-expressions-r3176 | |
| "Regular Expression Matching Can Be Simple and Fast" by Russ Cox |
##Description A Dashing widget that overlays a scrolling news ticker on the bottom of your Dashboard.
This widget is a little different, in that it doesn't occupy a typical space in the Dashing grid, but instead overlays the bottom of the dashboard. If it doesn't have any data, it will be hidden. If you send it an array of Strings, it will scroll through them either vertically or horizontally. Our office uses it on our dashboards to occasionally flash important notices or reminders in an eye catching fashion, most of the time it is not displayed.
See http://widget-challenge.herokuapp.com/vertical-ticker and http://widget-challenge.herokuapp.com/horizontal-ticker for a live demo.
| require "active_record" | |
| namespace :db do | |
| db_config = YAML::load(File.open('config/database.yml')) | |
| db_config_admin = db_config.merge({'database' => 'postgres', 'schema_search_path' => 'public'}) | |
| desc "Create the database" | |
| task :create do | |
| ActiveRecord::Base.establish_connection(db_config_admin) |
| The MIT License (MIT) | |
| Copyright (c) 2013 HomeFinder.com | |
| Permission is hereby granted, free of charge, to any person obtaining a copy of | |
| this software and associated documentation files (the "Software"), to deal in | |
| the Software without restriction, including without limitation the rights to | |
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
| the Software, and to permit persons to whom the Software is furnished to do so, | |
| subject to the following conditions: |
| Beginning Regex | |
| Intro to Regular Expressions by Michael Fitzgeral | |
| http://www.amazon.com/Introducing-Regular-Expressions-ebook/dp/B008K9OGDA/ref=sr_1_2?ie=UTF8&qid=1374171971&sr=8-2&keywords=Regular+Expressions | |
| Using Regular Expressions in Ruby: Part 1 by Nell Shamrell | |
| https://www.bluebox.net/insight/blog-article/using-regular-expressions-in-ruby-part-1-of-3 | |
| Intermediate Regex |