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
| 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 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 '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 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
| >>> 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 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 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 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
| [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 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
| // ==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 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
| irb(main):001:0> require 'stringio' | |
| => true | |
| irb(main):002:0> StringIO.ancestors | |
| => [StringIO, IO::writable, IO::readable, Enumerable, Data, Object, Kernel, BasicObject] | |
| irb(main):003:0> StringIO.ancestors[1] | |
| => IO::writable | |
| irb(main):004:0> Object.const_get(StringIO.ancestors[1].to_s) | |
| NameError: wrong constant name IO::writable | |
| from (irb):4:in `const_get' | |
| from (irb):4 |
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
| ### Keybase proof | |
| I hereby claim: | |
| * I am subwindow on github. | |
| * I am subwindow (https://keybase.io/subwindow) on keybase. | |
| * I have a public key whose fingerprint is 9996 4846 A128 881A AA0D D043 49B3 49E3 4FD2 1BAE | |
| To claim this, I am signing this object: |
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
| describe "A long-running process" do | |
| before(:context) do # Have to use before(:context) instead of subject() to make the long-running task only execute once | |
| @input_one = 1 | |
| @input_two = 2 # Can't use let() in before(:context) | |
| @my_test_object = MyTestClass.new | |
| @my_test_object.thing_that_takes_thirty_minutes(@input_one, @input_two) | |
| end | |
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
| aeg | |
| bcg | |
| fyi | |
| htc | |
| jio | |
| jll | |
| jmp | |
| mba | |
| mtr | |
| ril |