Visit IP of new droplet and add credentials
For dokku instructions:
http://dokku.viewdocs.io/dokku/application-deployment
/****************************************************************************** | |
Copyright (c) 2015 Particle Industries, Inc. All rights reserved. | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation, either | |
version 3 of the License, or (at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
#/usr/bin/env bash | |
# MIT © Sindre Sorhus - sindresorhus.com | |
# git hook to run a command after `git pull` if a specified file was changed | |
# Run `chmod +x post-merge` to make it executable then put it into `.git/hooks/`. | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
check_run() { | |
echo "$changed_files" | grep --quiet "$1" && eval "$2" |
{ | |
"vars": { | |
"@gray-base": "#413c2a", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#40a298, 6.5%)", | |
"@brand-success": "#5cb85c", |
# Based on: http://donpottinger.net/blog/2014/11/17/bye-bye-heroku-hello-dokku.html | |
# Add to gemfile: | |
ruby '2.1.2' | |
gem 'pg' | |
gem 'puma' | |
gem 'rails_12factor' | |
gem 'searchkick' | |
gem 'typhoeus' |
Visit IP of new droplet and add credentials
For dokku instructions:
http://dokku.viewdocs.io/dokku/application-deployment
/* Created with Modkit Classic | |
* Powered By Wiring Framework v1.0 | |
* http://modk.it/classic/editor/ | |
* Board: Arduino UNO | |
************************************************************* | |
* AUTOGENERATED BY MODKIT CLASSIC - DO NOT EDIT | |
*/ | |
//new data |
$('#glass').mousedown(function(evt){ | |
var $thumb = $('<img src="img/thumbprint.png" class="thumbprint">') | |
.css({top:evt.offsetY-30, left:evt.offsetX-20, opacity:1, rotation:90}) //, "-webkit-transform": "rotate("+((Math.random()*30)-15)+" deg)" | |
.delay(1000) | |
.animate({opacity:0}, 2000, function(){$(this).remove();}); | |
$(this).append($thumb); | |
}); |
module Paperclip | |
class AutoOrient < Paperclip::Processor | |
def initialize(file, options = {}, *args) | |
@file = file | |
end | |
def make( *args ) | |
dst = Tempfile.new([@basename, @format].compact.join(".")) | |
dst.binmode | |