Skip to content

Instantly share code, notes, and snippets.


Siddarth Chandrasekaran siddarth

View GitHub Profile
View foo.rb
@phone = Location.find(:first, ...elided... )
View bookstore.xml
<!-- example from -->
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<book category="CHILDREN">
View faker_irb
Minerva-2:gems Sid$ irb
>> require 'faker'
=> true
=> "Berniece Wunsch"
>> Faker::Name.first_name
=> "Garrison"
=> "Nettie Roob PhD"
>> Faker::PhoneNumber.phone_number
View gist_test.html
Here's some HTML code.
View procmail_tutorial0
# simple procmail rules
# die spam, die
* ^X-Spam-Flag: YES
View gist_tutorial2
* ^List-Id: Some list (<)some_list_id\.lists\.something\.domail\.tld(>)
View procmail_tutorial3
^To: foo@bar.baz* ^Subject:( \[Maybe\])? something .+ something|
View scala_installation
$ sudo port install scala
---> Computing dependencies for scala
---> Fetching scala
Error: Please one of the numbered scala* ports instead.
Error: Target org.macports.fetch returned: obsolete port
Error: Status 1 encountered during processing.
Before reporting a bug, first run the command again with the -d flag to get complete output.
View gist:406123
$ port search scala
cassandra @0.6.0 (databases)
A highly scalable, eventually consistent, distributed, structured key-value store.
dspam @3.9.0 (mail, net)
Scalable, open-source statistical anti-spam filter
mkpwd @0.7 (sysutils)
mkpwd is a scalable password generator
You can’t perform that action at this time.