Skip to content

Instantly share code, notes, and snippets.

View ibogun's full-sized avatar

Ivan ibogun

View GitHub Profile
@ibogun
ibogun / gist:be0dca6c2ec9c576594e
Created March 19, 2016 01:19
ubuntu 14.04 gcc = gcc-4.9
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9
@ibogun
ibogun / glacier_run.sh
Last active February 27, 2016 02:34
Run DeepAntrack on the glacier
./bin/robust_struck_tracker_v1.0 --features="deep" --proto_file="/udrive/student/ibogun2010/Research/Code/DeepAntrack/data/imagenet_memory.prototxt" --conv_deep_weights="/udrive/student/ibogun2010/Research/Code/DeepAntrack/data/bvlc_reference_caffenet.caffemodel"
import scipy.io
mat = scipy.io.loadmat('file.mat')
@ibogun
ibogun / Stack.java
Created February 22, 2016 16:51
Stack implementation using arrays
import java.util.EmptyStackException;
public class Stack<Key> implements StackADT<Key> {
public Key[] data; // array-based implementation of the stack
final int INITIAL_SIZE = 8;
int top = 0;
@SuppressWarnings("unchecked")
@ibogun
ibogun / StackADT.java
Created February 22, 2016 16:50
StackADT interface
public interface StackADT<Key> {
public boolean isEmpty();
public boolean isFull();
public void push(Key key);
public Key pop();
public Key top();
}
@ibogun
ibogun / QueueADT.java
Created February 22, 2016 16:49
QueueADT interface
public interface QueueADT<Key> {
public boolean isEmpty();
public boolean isFull();
public void enqueue(Key key);
public Key dequeue();
public Key front();
}
@ibogun
ibogun / 0_reuse_code.js
Created February 21, 2016 16:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@ibogun
ibogun / ListGenerics.java
Last active February 18, 2016 16:56
List implementation using Generics types
public class ListGenerics<Key> {
private Key[] list;
int size = 0;
int tail = 0;
final int INITIAL_SIZE = 8;
@SuppressWarnings("unchecked")
@ibogun
ibogun / list.java
Created February 10, 2016 20:04
Array implementation of the list
public class List {
private int[] list;
int size = 0;
int tail = 0;
final int INITIAL_SIZE = 8;
public List() {
@ibogun
ibogun / compile_cudnn.sh
Last active March 4, 2016 20:44
caffe building using open blas
cmake -DBLAS="open" -DCUDNN_ROOT=/udrive/student/ibogun2010/Download_glacier/cuda/ -DCUDNN_INCLUDE=/udrive/student/ibogun2010/Download_glacier/cuda/include/ -DCUDNN_LIBRARY=/udrive/student/ibogun2010/Download_glacier/cuda/lib64/ ..