Skip to content

Instantly share code, notes, and snippets.

View damian0815's full-sized avatar

Damian Stewart damian0815

View GitHub Profile
# 1. install vagrant and virtualbox
# 2. open terminal, run the following:
vagrant up ARTACK/debian-jessie
vagrant ssh
# this will ssh into the vagrant machine
# 3. now, inside the ssh session, install caffe and prerequisites
sudo apt-get install git python-pip
git clone https://github.com/BVLC/caffe.git
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose libatlas-dev libboost-all-dev
cat caffe/python/requirements.txt | sed "s/>=.*$//" | while read req; do sudo apt-get install -y python-$req; done
diff --git a/XVim/DVTSourceTextViewHook.m b/XVim/DVTSourceTextViewHook.m
index 622fac8..a20f02a 100644
--- a/XVim/DVTSourceTextViewHook.m
+++ b/XVim/DVTSourceTextViewHook.m
@@ -266,7 +266,7 @@ - (void)_drawInsertionPointInRect:(NSRect)aRect color:(NSColor*)aColor{
DVTSourceTextView *base = (DVTSourceTextView*)self;
XVimWindow* window = [base xvimWindow];
TRACE_LOG(@"_drawInsertionPointInRect");
- [base drawRect:[base visibleRect]];
+ //[base drawRect:[base visibleRect]];
#!/usr/bin/env python
import sys
import subprocess
import re
import os
import argparse
import math
class Size:
@damian0815
damian0815 / testApp.mm
Created August 5, 2012 15:37
For testing bugfix for of issue #863, replaces examples/ios/soundPlayerExample/src/testApp.mm
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofxiPhoneSetOrientation(OFXIPHONE_ORIENTATION_LANDSCAPE_RIGHT);
//this is to scale down the example for the iphone screen
appIphoneScale = 1.0;
synth.loadSound("sounds/synth.caf");
@damian0815
damian0815 / gist:1455235
Created December 10, 2011 14:02
libpano failing: brew install -v libpano output
==> Downloading http://downloads.sourceforge.net/project/panotools/libpano13/libpano13-2.9.17/libpano13-2.9.17.tar.gz
File already downloaded in /Users/damian/Library/Caches/Homebrew
/usr/bin/tar xf /Users/damian/Library/Caches/Homebrew/libpano-13-2.9.17.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/libpano/13-2.9.17 --mandir=/usr/local/Cellar/libpano/13-2.9.17/share/man
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/libpano/13-2.9.17 --mandir=/usr/local/Cellar/libpano/13-2.9.17/share/man
checking build system type... i686-apple-darwin11.2.0
checking host system type... i686-apple-darwin11.2.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no