I hereby claim:
- I am brobertsaz on github.
- I am ninjabob (https://keybase.io/ninjabob) on keybase.
- I have a public key ASBWE5xmaTJtQxIsaUir94tPgCadptMZyg2mYdgVJfbBFwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require 'rmagick' | |
class GetColors | |
def initialize(image, brand, campaign=nil) | |
@image = image | |
@brand = brand | |
@campaign = campaign | |
end |
Go to Heroku (https://www.heroku.com/) and create an account if you don’t have one
Install the heroku toolbelt from https://toolbelt.heroku.com/ or using Homebrew:
/> brew install heroku-toolbelt
Send you heroku account email to [email protected]
You’ll receive an email from heroku about being invited to test the alpha version of the binnacle add-on
Go to https://dashboard.heroku.com/apps to create a new app (+)
Clone https://github.com/binnacle-io/binnacle-rails-showcase:
I originally tried to use the ~> 3.0 version of Capistrano, but fell back to the 2.15.5 version. There were a lot of changes in the new version that I did not feel like learning right at the moment...
First we will create a new user for deployment:
$ ssh into your server
#!/bin/sh | |
set -u | |
set -e | |
# Example init script, this can be used with nginx, too, | |
# since nginx and unicorn accept the same signals | |
# Feel free to change any of the following variables for your app: | |
APP_ROOT=/home/deploy/public_html/rm/current | |
PID=$APP_ROOT/tmp/pids/unicorn.pid | |
ENV=production |
.activity-log-header | |
%p.low | |
Refine results by Organization | |
%p | |
= select_tag 'search[query]', options_for_select(@organizations), class: 'chosen-select', prompt: "Search for organization to select", id: 'org-selection' | |
.activity_log_results | |
%table.fancy-table | |
%thead | |
%tr | |
%th Date |
((15, 'less_than', 30) == true) |
:javascript | |
$(document).ready(function() | |
{ | |
checkForWelcome(); | |
} | |
); | |
function checkForWelcome() { | |
var userWelcome = "#{@current_user.hide_welcome}"; | |
if (userWelcome == "false") { |
These two snippets can be copy/pasted into a Sublime Text 2 new snippet and saved as a [.]sublime-snippet | |
To create <%= <cursor> %> use rb=+tab | |
<snippet> | |
<content><![CDATA[<%= ${1} %>]]></content> | |
<tabTrigger>rb=</tabTrigger> | |
<description><%=… %></description> | |
</snippet> | |