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
#!/bin/bash | |
#https://github.com/mathiasbynens/dotfiles/blob/master/.aliases | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias .....="cd ../../../.." | |
alias ~="cd ~" | |
alias -- -="cd -" |
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
class SessionsStatsJob(args: Args) extends Job(args) { | |
import ExternalOperations._ | |
import SessionsStatsJob._ | |
val maxIdleTimeInMillis = args.getOrElse("maxIdleTimeInMillis", "100").toInt | |
val input = args("input") | |
val output = args("output") | |
val events = TypedPipe.from(TypedCsv[(Int, Int, String, String)](input)) |
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 akka.actor | |
import scala.concurrent.duration._ | |
/** | |
* <p>Thaasophobia is a fear of being idle, sitting. | |
* <p>WARNING: A thaasophobic actor with default behaviour could stop before | |
* concurrent operations complete: | |
* <ul> | |
* <li>Don't use future callbacks inside the actor |
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
FROM java:8 | |
COPY Main.java / | |
RUN javac Main.java |
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://technet.microsoft.com/en-us/library/ee692685.aspx | |
# F7 = history | |
# Alt+F7 = history -c | |
# F8 = Ctrl+R | |
Set-Location C: | |
# Easier navigation | |
Set-Alias o start | |
function oo {start .} |
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://www.r00tb0x.com/content/find-recent-large-files-unix | |
find . -type f -mtime -2 -exec ls -ltrh "{}" ";" |
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
import static java.lang.Math.*; | |
//TODO: use BigInteger instead of long | |
public class Factorial { | |
public long recursiveFactorial(long n) { | |
if (n == 0) { | |
return 1; | |
} | |
return n * recursiveFactorial(n - 1); |