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
-- Elm 0.19.0 | |
module Blue exposing (main) | |
import Html exposing (..) | |
main = | |
div [] [ text "Hello from Blue!" ] |
require 'stringio' | |
require 'timeout' | |
class Object | |
def methods_returning(expected, *args, &blk) | |
old_stdout = $> | |
$> = StringIO.new | |
methods.select do |meth| | |
Timeout::timeout(1) { dup.public_send(meth, *args, &blk) == expected rescue false } rescue false |
class NSObject | |
def method_missing(meth, *args) | |
obj_c_meth = meth.split('_').inject([]){ |buffer,e| buffer.push(buffer.empty? ? e : e.capitalize) }.join | |
if respond_to?(obj_c_meth) | |
send obj_c_meth, *args | |
else | |
raise NoMethodError.new(meth.to_s) | |
end | |
end | |
end |
class QuotationsIndexParams | |
include Virtus | |
include DataMapper::Validations | |
attribute :scope, String, :default => 'pending' | |
attribute :sort, String, :default => 'poolability' | |
attribute :quotation, Hash, :default => {} | |
attribute :date, Date | |
validates_within :scope, :set => [nil,'all','pending','to_call','to_pool', 'cabbed'] | |
#!/usr/bin/env macruby -wKU | |
framework 'Foundation' | |
module Dispatch | |
module Futuristic | |
def proxy | |
Class.new(BasicObject) do | |
def initialize(obj) | |
@obj = obj | |
end |
differ = RSpec::Expectations::Differ.new | |
puts differ.diff_as_object "Lorem Ipsum is simply dummy text of the printing\n and typeseting industry", | |
"Lorem Ipsum is simply dummy text of the printing\n and typesetting industry" | |
Lorem Ipsum is simply dummy text of the printing | |
- and typesetting industry | |
+ and typeseting industry |
Capybara.add_selector :record do | |
xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } | |
match { |record| record.is_a?(ActiveRecord::Base) } | |
end |
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:
Just hit <Leader>rf
(rspec focus) to fold all example groups in the entire file except the full hierarchy to your spec that your cursor is inside. The current example is automatically centered on your screen, when possible.
This lets you easily see all the context
/describe
blocks that apply just to the current spec. See:
/* | |
SCSS Color Methods for Accessibility | |
================================================================================ | |
Adjust given colors to ensure that those color combination provide sufficient | |
contrast. | |
@version 0.1 | |
@link http://eye48.com/go/scsscontrast |