Skip to content

Instantly share code, notes, and snippets.

@bertmaher
bertmaher / lenet_mnist.pbtxt
Created March 16, 2018 04:35
lenet_mnist.pbtxt
name: "mnist_deploy"
op {
input: "data"
input: "conv1_w"
input: "conv1_b"
output: "conv1"
name: ""
type: "Conv"
arg {
name: "kernel"
#!/usr/bin/perl
while (<>) {
s/\015//g;
chomp;
my @a = split(/\t/, $_);
print(join(",", map { "\"$_\"" } @a), "\n");
}
import com.zaxxer.nuprocess.*;
import java.util.concurrent.*;
import java.util.*;
class PipeLeakRepro {
static class ProcessHandler extends NuAbstractProcessHandler {
private NuProcess nuProcess;
@Override
@bertmaher
bertmaher / TestSqlite.java
Created June 8, 2017 04:12
Test case demonstrating race in sqlite-jdbc 3.16.1
import java.sql.DriverManager;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
public class TestSqlite {
public static void main(String[] args) throws Throwable {