this has moved to https://web.archive.org/web/20150321014734/https://wiki.scala-lang.org/display/SW/IRC+vs.+Twitter+vs.+Real+Life+name+conversion+chart
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
object scala { | |
val version = "SCALA_VERSION$" | |
} | |
val xml = <dependencies> | |
<dependency> | |
<groupId>org.scalanlp</groupId> | |
<artifactId>scalala_${scala.version}</artifactId> | |
<version>0.3.1</version> | |
</dependency> |
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
# how to name keys in redis for keyvalue stores | |
http://code.google.com/p/redis/wiki/TwitterAlikeExample | |
http://rediscookbook.org/introduction_to_storing_objects.html | |
http://www.slideshare.net/playnicelyapp/redis-schema-design-for-playnicely-redis-london-meetup | |
antirez has a book about keyvalue design in the pipeline | |
http://code.google.com/p/redis/wiki/IntroductionToRedisDataTypes | |
schema: | |
<namespace>:<globalObject> |
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
// The way Scala for-comprehensions work is that: | |
for (x <- c) f(x) | |
// simply translates to: | |
c.foreach(x => f(x)) | |
// Likewise: |
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
#!/usr/bin/env ruby | |
if ARGV.size < 2 | |
$stderr.puts 'usage: monitor <path> <command> [arg1 arg2 ...]' | |
exit 100 | |
end | |
PATH = ARGV[0] | |
COMMAND = ARGV[1] | |
ARGS = ARGV[2..-1] |
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
<!DOCTYPE html> | |
<html"> | |
<head> | |
<script src="/static/js/jquery.min.js"></script> | |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
</head> | |
<body> | |
<h2 class="headline">New Talk</h2> | |
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
package hbase.sandbox; | |
import java.io.IOException; | |
import org.apache.hadoop.conf.Configuration; | |
import org.apache.hadoop.hbase.HBaseConfiguration; | |
import org.apache.hadoop.hbase.HColumnDescriptor; | |
import org.apache.hadoop.hbase.HTableDescriptor; | |
import org.apache.hadoop.hbase.client.HBaseAdmin; |
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
// Thanks! | |
// http://voidy21.hatenablog.jp/entry/2012/01/09/024544 | |
// | |
// Usage: | |
// Run `play console` and then :paste the below code | |
// | |
// Tested on commit 4727620693 of Play20 master, at Feb 6. | |
// | |
// Follow the below steps to enable play.api.test classes in Play console. | |
// $ set libraryDependencies += "play" %% "play-test" % "2.0-RC1-SNAPSHOT" |
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
<!-- http://plnkr.co/edit/N98IKTcHoZMCs18FjSRF?p=preview --> | |
The directive assumes that the checkboxes array contains objects that have an isSelected property and a desc property. | |
<tri-state-checkbox checkboxes="listelements"></tri-state-checkbox> | |
or | |
<!-- http://plnkr.co/edit/PTnzedhD6resVkApBE9K?p=preview --> | |
If you prefer to have the directive only render the tri-stated checkbox, hence the individual checkboxes are in the HTML: | |
<tri-state-checkbox checkboxes="listelements" class="select-all-cb"> | |
</tri-state-checkbox>select all |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
OlderNewer