This file contains hidden or 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
| easterEgg.BadWorder.list={ | |
| "4r5e":1, | |
| "5h1t":1, | |
| "5hit":1, | |
| a55:1, | |
| anal:1, | |
| anus:1, | |
| ar5e:1, | |
| arrse:1, | |
| arse:1, |
This file contains hidden or 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 hidden or 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 hidden or 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
| scala> val x: PartialFunction[String, Unit] = { case "foo" => println("Foo") } | |
| x: PartialFunction[String,Unit] = <function1> | |
| scala> x("foo") | |
| Foo | |
| scala> x("bar") | |
| scala.MatchError: bar | |
| scala> val y: PartialFunction[String, Unit] = { case "bar" => println("Bar") } |
NewerOlder