Add for(value <- items)
and for(value, offset <- items)
to Sweet.js
for(x <- [1,2,3,4]) {
var a = x + 10;
print(a);
}
[package] | |
name = "map" | |
version = "0.0.0" | |
authors = ["Jorge Aparicio <japaricious@gmail.com>"] | |
[dependencies.criterion] | |
git = "https://github.com/japaric/criterion.rs" |
#!/usr/bin/env ruby | |
case ARGV.size | |
when 1 | |
host = ARGV[0] | |
body = STDIN.read | |
when 2 | |
host = ARGV[0] | |
body = ARGV[1] | |
else |
#!/usr/bin/ruby -w | |
require 'rubygems' | |
require 'mongo' | |
require 'thread' | |
include Mongo | |
db = Connection.new('localhost',27017,:slave_ok => true).db('test') | |
coll = db['cappedCollection'] |
source 'http://rubygems.org' | |
gem 'rails', '3.0.3' | |
# Bundle edge Rails instead: | |
# gem 'rails', :git => 'git://github.com/rails/rails.git' | |
platforms :jruby do | |
gem 'activerecord-jdbc-adapter', :require => false | |
gem 'activerecord-jdbcmysql-adapter', :require => false |
trait PostStart { actor: Actor => | |
def postStart: Unit | |
override def preStart { | |
actor.become { | |
case "PostStart" => try { postStart } finally { actor.unbecome } | |
} | |
actor.self ! "PostStart" | |
} | |
} |
A little modification over the default spanish keyboard.
With this rules you can type á
with «AltGr»+«a», é
with «AltGr»+«e», whatever. The €
symbol is on «AltGr»+«e», and ®
is on «AltGr»+«Shift»+«e»
~/.xkb
and download the custom
and load_custom_xkb.sh
/home/.../.xkb/load_custom_xkb.sh
to your session. In GNOME you can use the gnome-session-properties
command.# For devel machines | |
# PS1 in use, one per chroot jail | |
PS1='\[\e[36m\]\u@'`cat ~/.machine_name`' \[\e[32m\][$rvm_env_string] \[\e[35m\]($(git symbolic-ref HEAD 2> /dev/null | xargs -r basename))\[\e[36m\] \w\$\[\e[m\] ' | |
PS1='\[\e[0;48;5;229m\]\u@'`cat ~/.machine_name`' \[\e[32m\][$rvm_env_string] \[\e[35m\]($(git symbolic-ref HEAD 2> /dev/null | xargs -r basename))\[\e[36m\] \w\$\[\e[m\] ' | |
require 'java' | |
require 'mvn:org.scala-lang:scala-library' | |
require 'case' | |
module Akka | |
include_package 'akka.actor' | |
include_package 'akka.util.duration' | |
java_import 'akka.routing.RoundRobinRouter' | |
java_import 'akka.util.Duration' | |
end |