This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/inline' | |
gemfile true do | |
source 'https://rubygems.org' | |
gem 'active_model_serializers', github: 'rails-api/active_model_serializers', ref: 'd30aa4c' | |
end | |
print "==================================================\n\n" | |
class Shoe | |
attr_accessor :id, :name, :vendor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-2.2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This beeing a plain ruby file do whatever you what | |
# like requiring some organization wide baseline rubocop config | |
# or a todo file | |
PoC.configure do |config| | |
# I've yet to find a better solution for the namespaceing issue so I can | |
# directly access the Metrics module | |
# even with a instance_eval/instance_exec from within the PoC module I have | |
# to call PoC::Cop::Metrics... | |
include PoC::Cop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
chapters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sips/* | |
rss.xml | |
.bundle | |
auth.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatically precompile assets | |
load "deploy/assets" | |
# Execute "bundle install" after deploy, but only when really needed | |
require "bundler/capistrano" | |
# Application name | |
set :application, "page" | |
# Application environment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uses underscore.js stuff | |
E.Helpers.Html = { | |
equalHeights: function($el, minHeight, maxHeight) { | |
var heights,targetHeight; | |
heights = jQuery($el).map(function(){return jQuery(this).height();}); | |
heights.push(minHeight); | |
targetHeight = maxHeight ? _.min([maxHeight, _.max(heights)]) : _.max(heights); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
require 'open-uri' | |
require 'rss' | |
require 'pry' | |
class Feedly | |
attr_accessor :url, :store | |
def initialize url | |
@url = url |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /etc/acpi/actions/backlight | |
#acpi_fakekey $KEY_BRIGHTNESSDOWN | |
# added per http://forum.notebookreview.com/showpost.php?p=5665108&postcount=1235 | |
#brightness=`echo $3 | sed 's/0000002//'` | |
#setpci -s 00:02.0 F4.B=${brightness}f | |
# added per mailing-list post |