###Quick links to get started:
http://nithinbekal.com/posts/rails-presenters/
http://eewang.github.io/blog/2013/09/26/presenting-the-rails-presenter-pattern/
This is a collection of links, examples and rants about Presenters/Decorators in Rails.
###Quick links to get started:
http://nithinbekal.com/posts/rails-presenters/
http://eewang.github.io/blog/2013/09/26/presenting-the-rails-presenter-pattern/
This is a collection of links, examples and rants about Presenters/Decorators in Rails.
/* | |
Kieran Venison scss mixin | |
kieranmv95@gmail.com | |
Example usage: http://codepen.io/Kieranmv95/pen/QNYLvE | |
*/ | |
// Name: Arrow | |
// Params: direction, color, size | |
@mixin arrow($arrow-direction, $arrow-color, $arrow-size){ | |
# This task will notify Sentry via their API[1] that you have deployed | |
# a new release. It uses the release timestamp as the `version` | |
# (like 20151113182847) and the git ref as the optional `ref` value. | |
# | |
# This task requires several environment variables be set (or just | |
# hardcode the values in here if you like living on the edge): | |
# | |
# ENV['SENTRY_API_ENDPOINT'] : API endpoint, https://app.getsentry.com | |
# ENV['SENTRY_ORG'] : the organization for this app | |
# ENV['SENTRY_PROJECT'] : the project for this app |
## | |
## WPS on OpenWRT | |
## This script enables Wi-Fi Protected Setup on OpenWRT. | |
## | |
## Resources | |
## http://wiki.openwrt.org/doc/uci/wireless#wps.options | |
## | |
#Install the full wpad package | |
opkg update |
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'mysql2' | |
Mysql2::Client.default_query_options.merge!(:as => :array) | |
conn = Mysql2::Client.new(:host => 'localhost', :username => 'user', | |
:password => 'pw', :database => 'db') | |
tables = conn.query("SHOW TABLES").map {|row| row[0] } |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)