My Recent Pastes (71 and counting)
Pastes by Erik Kastner (71 and counting)
Below are the 11 most recent pasties by Erik Kastner.
February 20, 2007
5:53PM EDT
by Erik Kastner
View all 58 lines
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins
February 16, 2007
9:30PM EDT
by Erik Kastner
View all 16 lines
%w[rubygems builder open-uri].each{|x| require x}
count = 1
RandList = URI("http://random.org/cgi-bin/randnum?num=#{count}&min=1&max=100").read
Builder::XmlMarkup.new(:target => STDOUT, :indent => 2).instance_eval do
instruct! :xml, :version => "1.0", :encoding => "UTF-8"
January 23, 2007
1:49AM EDT
by Erik Kastner
View all 26 lines
class Payment < ActiveRecord::Base validates_presence_of :email, :last_name, :first_name, :payment_gross validates_as_email :email
January 21, 2007
1:16AM EDT
by Erik Kastner
View all 52 lines
#!/usr/bin/env ruby require "rubygems" require 'YAML' require 'open-uri'
January 02, 2007
9:36PM EDT
by Erik Kastner
View all 11 lines
#!/usr/bin/env ruby require "rubygems" require "hpricot" require "open-uri"
January 02, 2007
9:36PM EDT
by Erik Kastner
(doc/'img.vimgSm').each { |img| puts img.attributes["src"] if img.attributes["src"] =~ /#{id}/ }
October 29, 2006
8:42AM EDT
by Erik Kastner
View all
30 lines
Includes file attachment.
#!/usr/bin/env ruby require 'rubygems' require 'xmlsimple' require 'builder'
October 29, 2006
12:38AM EDT
by Erik Kastner
View all
29 lines
Includes file attachment.
<?xml version="1.0"?>
<!DOCTYPE database SYSTEM "file:///System/Library/DTDs/CoreData.dtd">
<database>
<databaseInfo>
October 28, 2006
3:15PM EDT
by Erik Kastner
View all
39 lines
Includes file attachment.
#!/usr/bin/env ruby require 'rubygems' require 'xmlsimple' require 'builder'
October 28, 2006
12:23PM EDT
by Erik Kastner
View all
12 lines
Includes file attachment.
#!/usr/bin/env ruby require 'rubygems' require 'hpricot' require 'open-uri'
