Public Gists by ReinH

Gravatar
Thu Nov 05 14:01:07 -0800 2009
1
2
3
uudec(Text) -> << <<(X-32):6>> || <<X:8>> <= Text >>.
 
ydec (<<$=, X, Rest/binary>>) -> <<(X-106 rem 256):8, (ydec(Rest))/binary>>;
Gravatar
Tue Nov 03 14:32:11 -0800 2009
1
2
3
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
Gravatar
Thu Oct 29 11:11:17 -0700 2009
1
2
3
class ActiveRecord::Associations::HasManyThroughAssociation
  private
  def delete_records(records)
Gravatar
Wed Oct 28 15:50:26 -0700 2009
1
2
3
        # TODO - add dependent option support
        def delete_records(records)
          klass = @reflection.through_reflection.klass
Gravatar
Wed Oct 28 15:48:51 -0700 2009
1
2
3
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Gravatar
Wed Oct 28 15:48:42 -0700 2009
1
2
3
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Gravatar
Wed Oct 28 15:48:26 -0700 2009
1
2
3
" ============================================================================
" Netrw Directory Listing (netrw v135)
" /Users/reinh/.vim/bundle
Gravatar
Wed Oct 28 15:47:54 -0700 2009
1
2
3
        # TODO - add dependent option support
        def delete_records(records)
          klass = @reflection.through_reflection.klass
Gravatar
Wed Oct 14 13:27:09 -0700 2009
1
2
3
#!/usr/bin/env ruby -ws
 
if ARGV.empty?
Gravatar
Mon Oct 12 11:23:09 -0700 2009
1
2
3
[Fri Sep 18 14:16:18 2009] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd: Could not reliably determine the server's fully qualified domain name, using rein-henrichss-macbook-pro.local for ServerName
[Fri Sep 18 14:16:18 2009] [notice] Digest: generating secret for digest authentication ...
Gravatar
Sun Oct 11 16:14:37 -0700 2009
1
2
3
19:06:18 Warning: Port sent with DCC request is a lowport (0, unknown) - this isn't normal. It is possible the address/port is faked (or maybe someone is just trying to bypass firewall)
19:06:18 DCC SEND from B1lack_Mag3_ [0.0.0.0 port 0]: irc.hackerthreads.org#hackerthreads [0B bytes] requested in channel #rubyonrails
19:06:18 Warning: Port sent with DCC request is a lowport (0, unknown) - this isn't normal. It is possible the address/port is faked (or maybe someone is just trying to bypass firewall)
Gravatar
Thu Oct 08 16:26:55 -0700 2009
1
2
3
user.name=Rein Henrichs
user.email=reinh@reinh.com
sendemail.smtpserver=smpt.gmail.com
Gravatar
Thu Oct 08 12:21:31 -0700 2009
1
2
3
module Factor
    def self.add(name, &block)
        Factor::Resolvers.add(name, block)
Gravatar
Thu Oct 08 09:38:17 -0700 2009
1
2
3
module Factor
  def self.add(name, &block)
    Factor::Resolvers.add(name, block)
Gravatar
Wed Oct 07 12:43:12 -0700 2009
1
2
3
# Encapsulates presentation and representation information for database objects
# by wrapping them in a presentation layer. Proxies data requests to the data object
# itself for transparency.
Gravatar
Tue Oct 06 10:35:25 -0700 2009
1
2
3
0.25.0
======
b1eddbb Updated and created new CHANGELOG format
Gravatar
Tue Oct 06 10:34:19 -0700 2009
1
2
3
0.25.0
======
b1eddbb Updated and created new CHANGELOG format
Gravatar
Mon Oct 05 11:20:48 -0700 2009
1
2
3
reinh:/Users/reinh$ time curl --HEAD http://www.gear6.com/
HTTP/1.1 200 OK
Date: Mon, 05 Oct 2009 18:19:36 GMT
Gravatar
Mon Oct 05 08:51:30 -0700 2009
1
2
3
describe Node do
  describe 'attributes' do
    before :each do
Gravatar
Fri Sep 25 14:46:39 -0700 2009
1
2
3
# Compute an average for <back> elements from the end of the results
def average_value(back, results)
  return results['values'].last['value'] if back.zero?