The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2014
- Original post
| /****************************************************************************** | |
| 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' |
| /* 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 |
| 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 | |
| http://subrosasoft.com/blog/2011/07/create-a-bootable-mac-os-x-10-7-lion-flash-drive/ | |
| 1) Purchase and download Lion from the Mac App Store on any Lion compatible Mac running Snow Leopard. | |
| 2) Right click on “Mac OS X Lion” installer and choose the option to “Show Package Contents” | |
| 3) Inside the Contents folder, you will find a SharedSupport folder and inside the SharedSupport folder you will find the | |
| InstallESD.dmg. This is the 10.7 Lion boot disc image. | |
| 4) Copy InstallESD.dmg to another folder like the Desktop. To do so, simply click and drag the file to the desired location |