This file contains 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
// ==UserScript== | |
// @name Google News Filter | |
// @namespace [email protected] | |
// @description filter out annoying news stories | |
// @include http://news.google.com/* | |
// @include https://news.google.com/* | |
// ==/UserScript== | |
(function () { | |
var regexes = [ |
This file contains 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
[5] pry(#<RbVmomi::NewDeserializer>)> e | |
=> #<RuntimeError: unknown VMODL type AnyType> | |
[6] pry(#<RbVmomi::NewDeserializer>)> e.backtrace | |
=> ["/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/type_loader.rb:103:in `make_type'", | |
"/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/type_loader.rb:65:in `block in get'", | |
"/Users/epeterson/.rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'", | |
"/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/type_loader.rb:63:in `get'", | |
"/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/deserialization.rb:79:in `deserialize'", | |
"/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/deserialization.rb:121:in `block in traverse_data'", | |
"/Users/epeterson/.gem/ruby/1.9.3/gems/rbvmomi-1.8.0/lib/rbvmomi/deserialization.rb:103:in `each'", |
This file contains 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 password immediately after sleep or screen saver begins | |
defaults write com.apple.screensaver askForPassword -int 1 | |
defaults write com.apple.screensaver askForPasswordDelay -int 0 |
This file contains 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
>>> Installing ruby 1.9.3-p448 into /Users/epeterson/.rubies/ruby-1.9.3-p448 ... | |
>>> Installing dependencies for ruby 1.9.3-p448 ... | |
Warning: openssl-1.0.1e already installed | |
Warning: readline-6.2.4 already installed | |
Warning: libyaml-0.1.4 already installed | |
Warning: gdbm-1.10 already installed | |
Warning: libffi-3.0.13 already installed | |
>>> Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2 into /Users/epeterson/src ... | |
--2013-10-09 16:40:50-- http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.bz2 | |
Resolving ftp.ruby-lang.org... 221.186.184.75 |
This file contains 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 'marky_markov' | |
require 'isaac' | |
DEBUG = ARGV[0] | |
configure do |c| | |
c.nick = DEBUG ? "marky_markov_t" : "marky_markov" | |
c.server = "irc.damballa" | |
c.port = 6667 | |
end |
This file contains 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
irb(main):092:0> 100.times do | |
irb(main):093:1* t = Time.now | |
irb(main):094:1> puts Time.at(t.to_f).nsec > t.nsec | |
irb(main):095:1> end | |
false | |
false | |
true | |
true | |
true | |
false |
This file contains 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 'spec_helper' | |
describe GamesController do | |
describe 'POST "create"' do | |
subject(:response) { post :create, params } | |
context 'valid parameters provided' do | |
let(:params) { { game: FactoryGirl.attributes_for(:game) } } | |
specify { expect { subject }.to change(Game, :count).by 1 } |
This file contains 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
psql (9.1.3) | |
Type "help" for help. | |
dev=# select now(); | |
now | |
------------------------------- | |
2013-03-28 14:27:28.820854-04 | |
(1 row) | |
dev=# select now(); |
This file contains 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
irb(main):001:0> "Caches".singularize | |
=> "Cach" |
This file contains 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
Failures: | |
1) Foo timestamp | |
Failure/Error: its(:timestamp) { should eql timestamp } | |
expected: Tue, 15 May 2012 19:06:00 UTC +00:00 | |
got: Tue, 15 May 2012 19:06:00 UTC +00:00 | |
(compared using eql?) | |