Skip to content

Instantly share code, notes, and snippets.

@simleb
simleb / convert.c
Created October 6, 2010 22:00
Create a CLF file out of a ASCII sheep data file
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "CLF.h"
#define MAXLINE 256 /* Maximum length of a line */
int main(int argc, char * argv[])
{
@simleb
simleb / gist:1083396
Created July 14, 2011 20:43
brew install -v opencv
==> Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.2/OpenCV-2.2.0.tar.bz2
File already downloaded in /Users/sleblanc/Library/Caches/Homebrew
/usr/bin/tar xf /Users/sleblanc/Library/Caches/Homebrew/opencv-2.2.tar.bz2
==> cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
@simleb
simleb / staticfloat_julia_brew_log
Created November 22, 2012 08:33
brew install --HEAD -v julia
==> Cloning https://github.com/JuliaLang/julia.git
git status -s
Updating /Library/Caches/Homebrew/julia--git
git config remote.origin.url https://github.com/JuliaLang/julia.git
git config remote.origin.fetch +refs/heads/master:refs/remotes/origin/master
git fetch origin
git reset --hard origin/HEAD
HEAD is now at 4481a4d Require all inputs to sparse operations to be of the same type.
git checkout-index -a -f --prefix=/private/tmp/julia-1c2B/
git submodule init
@simleb
simleb / julia_install.log
Created November 29, 2012 01:39
staticfloat/homebrew-julia install log
sleblanc@leo:~% brew install --HEAD -dv julia
/usr/local/bin/brew: loading /usr/local/Library/Formula/julia.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/readline.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/pcre.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/gmp.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/llvm.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/glpk.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/fftw.rb
/usr/local/bin/brew: loading /usr/local/Library/Taps/staticfloat-julia/arpack-ng.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/open-mpi.rb
#include <iostream>
#include <hdf5.h>
// Constants
const char saveFilePath[] = "test.h5";
const hsize_t ndims = 2;
const hsize_t ncols = 3;
int main()
@simleb
simleb / find_all_spin_report.txt
Created August 12, 2013 21:04
Textmate 2.0-alpha.9461 spin report for bug in Find All
Sampling process 5545 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling TextMate (pid 5545) every 1 millisecond
Process: TextMate [5545]
Path: /Applications/TextMate.app/Contents/MacOS/TextMate
Load Address: 0x101f49000
Identifier: com.macromates.TextMate.preview
Version: 2.0-alpha.9461 (9461)
Code Type: X86-64 (Native)
Parent Process: launchd [230]
@simleb
simleb / multiple_paste_spin_report.txt
Created May 17, 2014 03:44
TextMate version 2.0-alpha.9543 spin report while hanging after pasting with two carets
Sampling process 190 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling TextMate (pid 190) every 1 millisecond
Process: TextMate [190]
Path: /Applications/TextMate.app/Contents/MacOS/TextMate
Load Address: 0x104a03000
Identifier: com.macromates.TextMate.preview
Version: 2.0-alpha.9543 (9543)
Code Type: X86-64
Parent Process: launchd [177]