This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
- NBC
| class ApplicationController < ActionController::Base | |
| before_filter :skip_strong_parameters, :if => :rails_admin_path? | |
| def skip_strong_parameters | |
| params.select { |key, value| params[key].kind_of?(ActionController::Parameters) }.map { |key, value| params[key].permit! } | |
| end | |
| privaate | |
| def rails_admin_path? |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
| let(:vehicle) { FactoryGirl.create(:vehicle, vehicle_attributes) } | |
| let(:vehicle_attributes) { {} } | |
| describe "#to_s" | |
| subject { vehicle.to_s } | |
| let(:vehicle_attributes) { {name: "Carzilla"} } | |
| it { should == "Carzilla" } | |
| end |
| class ActionDispatch::Routing::Mapper | |
| def draw(routes_name) | |
| instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb"))) | |
| end | |
| end | |
| BCX::Application.routes.draw do | |
| draw :api | |
| draw :account | |
| draw :session |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| Function::define = (prop, desc) -> | |
| Object.defineProperty this.prototype, prop, desc | |
| class GetterSetterTest | |
| constructor: (@_obj = {}) -> | |
| # 'obj' is defined via the prototype, the definition proxied through | |
| # to 'Object.defineProperty' via a function called 'define' providing | |
| # some nice syntactic sugar. Remember, the value of '@' is | |
| # GetterSetterTest itself when used in the body of it's class definition. |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Mathieu 'p01' Henri - http://www.p01.org/releases/ | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| require "uri" | |
| (URI::REGEXP.constants - ["PATTERN"]).each do |rc| | |
| puts "#{rc}: #{URI::REGEXP.const_get(rc)}" | |
| end | |
| URI::REGEXP::PATTERN.constants.each do |pc| | |
| puts "#{pc}: #{URI::REGEXP::PATTERN.const_get(pc)}" | |
| end |
| var aspect = {}; | |
| aspect.add = function (obj, fnName, aspectFn, when, once) { | |
| if ('object' !== typeof obj) throw new TypeError('Must pass an object as the first argument'); | |
| obj = obj || window; | |
| if (Array.isArray(fnName)) { | |
| fnName.forEach(function (name) { | |
| aspect._add(obj, name, aspectFn, when, once); |