Skip to content

Instantly share code, notes, and snippets.

View hipertracker's full-sized avatar

Jaroslaw Zabiello hipertracker

View GitHub Profile
class ScalaModel[T] {
def valid_? = {
errors.clear
validate
errors.empty_?
}
def validate {}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>rubymine</string>
<key>CFBundleIconFile</key>
<string>rubymine.icns</string>
$ ~/opt/bin/erlc tak.erl
$ ~/opt/bin/erl -noshell -s tak bm -s init stop
1.277981
1.243637
1.241756
1.239656
1.239023
$ ~/opt/bin/erlc +native tak.erl
require 'open-uri'
# url dsl -- the ultimate url dsl!
#
# You just can't beat this:
#
# $ irb -r url_dsl
# >> include URLDSL
# => Object
# >> http://github.com/defunkt.json