Public Gists by ReinH

Gravatar
Thu Nov 12 15:48:18 -0800 2009
1
2
3
#!/usr/bin/env ruby
 
## git-rank-contributors: a simple script to trace through the logs and
Gravatar
Mon Nov 09 17:25:03 -0800 2009
1
2
3
  has_many :parameters_store, :as => :parameterable do
    def to_hash
      Hash[*target.map{|p| [p.key, p.vaue]}.flatten]
Gravatar
Sat Nov 07 19:56:36 -0800 2009
1
2
3
    FileElement = lists:last(xmerl_xpath:string("//file", Xml)),
    {file, Attributes, _} = xmerl_lib:simplify_element(FileElement),
    Subject = proplists:get_value(subject, Attributes),
Gravatar
Sat Nov 07 19:56:18 -0800 2009
1
2
    FileElement = lists:last(xmerl_xpath:string("//file", Xml)),
    {file, Attributes, _} = xmerl_lib:simplify_element(FileElement),
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