- Twitter: @skorfmann
- Website or Blog: http://skorfmann.com
- Company: Bulletproof Networks Pty Ltd. http://www.bulletproof.net.au
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 'rubygems' | |
require 'faster_csv' | |
require 'net/http' | |
require 'open-uri' | |
class String | |
require 'iconv' #this line is not needed in rails ! | |
def to_utf8 | |
Iconv.conv('utf-8','ISO-8859-1', self) | |
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
Day job: Web-Engineering (Ruby on Rails, Freelancer) | |
Favorite Python project: Django | |
Favorite Conference: euruko | |
Python Experience Level: few test-drives |
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
<h1>Your Pragmatic Catalog </h1> | |
<% @products.each do |product| %> | |
<div class="entry"> | |
<%= link_to image_tag(product.image_url) , line_items_path(:product_id => product.id) , | |
:method => :post %> | |
<h3><%= product.title %></h3> | |
<%=raw product.description %> |
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 'rubygems' | |
IRB.conf[:AUTO_INDENT] = false | |
IRB.conf[:USE_READLINE] = true | |
class Object | |
# easy way to list an object's methods without clutter | |
def local_methods | |
(methods - Object.instance_methods).sort | |
end | |
end |