Skip to content

Instantly share code, notes, and snippets.

View Beritra's full-sized avatar
🎯
Focusing

Zheng Beritra

🎯
Focusing
View GitHub Profile
public class TestTest {
int num = 10000 * 10000;
public static void main(String[] args) {
long timestamp = System.currentTimeMillis();
System.out.println(new TestTest().func());
System.out.println(System.currentTimeMillis() - timestamp);
}
public int[] func2(int len) {
@Beritra
Beritra / Collatz conjecture .txt
Last active March 22, 2020 15:52
考拉兹猜想 Collatz conjecture
public class CollatzConjecture {
AtomicInteger max = new AtomicInteger(0);
int[] ints = new int[100000001];
public static void main(String[] args) {
CollatzConjecture test = new CollatzConjecture();
long timestamp = System.currentTimeMillis();
System.out.println(test.count());
System.out.println(System.currentTimeMillis() - timestamp);
}
@Beritra
Beritra / build-caffe.md
Created June 19, 2018 17:19 — forked from kylemcdonald/build-caffe.md
How to build Caffe for OS X.

Theory of Building Caffe on OS X

Introduction

Our goal is to run python -c "import caffe" without crashing. For anyone who doesn't spend most of their time with build systems, getting to this point can be extremely difficult on OS X. Instead of providing a list of steps to follow, I'll try to explain why each step happens.

This page has OS X specific install instructions.

I assume: