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
# With GPU | |
Batch: 0 - elapsed: 0.37758 sec | |
Batch: 100 - elapsed: 0.01429 sec | |
Batch: 200 - elapsed: 0.01433 sec | |
Batch: 300 - elapsed: 0.01449 sec | |
Batch: 400 - elapsed: 0.01442 sec | |
Batch: 500 - elapsed: 0.01444 sec | |
Batch: 600 - elapsed: 0.01459 sec | |
Batch: 700 - elapsed: 0.01465 sec | |
Batch: 800 - elapsed: 0.01462 sec |
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
def someFuture(input: String): Future[String] = { | |
val promise = new Promise[String] | |
val javaFuture = someJavaFutureMethod(input) | |
// Use Timer to periodically check for return value of | |
timer.schedule(10.millis) { | |
if (javaFuture.isDone()) { | |
// Probably glossing over some edge cases around setting interrupts, timeouts, etc.. but you get the gist |
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
░░░░░░░░░▄░░░░░░░░░░░░░░▄ Wow | |
░░░░░░░░▌▒█░░░░░░░░░░░▄▀▒▌ | |
░░░░░░░░▌▒▒█░░░░░░░░▄▀▒▒▒▐ So serious | |
░░░░░░░▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐ | |
░░░░░▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐ much asking | |
░░░▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌ Wow | |
░░▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌ | |
░░▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐ very wonder | |
░▐░░░▒▒▒▒▒▒▒▒▌██▀▒▒░░░▒▒▒▀▄▌ | |
░▌░▒▄██▄▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▌ no joke |
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
rcOpts = {'figure.figsize': (6.0,4.0), | |
# play nicely with white background in the Qt and notebook frontend | |
'figure.facecolor': 'white', | |
'figure.edgecolor': 'white', | |
# 12pt labels get cutoff on 6x4 logplots, so use 10pt. | |
'font.size': 10, | |
# 72 dpi matches SVG/qtconsole | |
# this only affects PNG export, as SVG has no dpi setting | |
'savefig.dpi': 72, |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.vincentchu</groupId> | |
<artifactId>finagle-exp</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>${project.artifactId}</name> | |
<description>My Web App</description> | |
<inceptionYear>2013</inceptionYear> | |
<url>http://github.com/path/to/project</url> |
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 | |
$@ | |
CODE=$? | |
if [ "$CODE" = "0" ] | |
then | |
growlnotify --image /Users/vince/bin/images/doom_succ.png --message "$1" Command Succeeded! | |
else |
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 random | |
positions = [0, 1, 2, 3] | |
# Represents sequence ACTG | |
bases = { | |
0: "A", | |
1: "C", | |
2: "T", | |
3: "G" |
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
vince@local → git commit -a | |
[0b51f2f] DON'T FUCKING TOUCH THIS -- BUILD IS STABLE DAMMIT GERGHAFDKJ H | |
4 files changed, 5 insertions(+), 4 deletions(-) |
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
U R S A M O S H E P A L L | |
S A I S E A T E N A R I A | |
E G G S A T I L T I T E M | |
R U N O F T H E M I L L | |
C A L S E R E P A M | |
C A P I T O L T E A A V E | |
A R E A A I R P U R E R | |
B O L T O F L I G H T N I N G | |
L U T E S D O E S A G E | |
E S E A D S B L A T H E R |
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
{ | |
"cmd": ["mvn", "clean", "compile"], | |
"working_dir": "${project_path:${folder}}", | |
"file_regex": "\\[ERROR\\] (\\/.*?):(\\d+):() (.*?)$" | |
} |