Skip to content

Instantly share code, notes, and snippets.

@groakat
groakat / A-Practical-Guide-towards-Performance-in-Research-Code.ipynb
Last active December 18, 2015 10:28
Notebook comparing different alternatives of writing optimized scientific code in python.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@groakat
groakat / hog.f90
Last active December 18, 2015 11:20
Supplementary material for http://nbviewer.ipython.org/5774959
! hog.f90
! compile via f2py: $f2py -c -m hog hog.f90
module hog
contains
subroutine angHist(dx, dy, binSize, hist)
! compute simple hog from gradients
implicit none
@groakat
groakat / using_local_reveal.ipynb
Last active December 20, 2015 10:30 — forked from damianavila/using_local_reveal.ipynb
Changed RevealExporter to SlidesExporter to make it working with IPython 1.0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@groakat
groakat / pipelineSwapBug.c
Last active December 20, 2015 18:49
Complementary file to Gstreamer bug #705531 (https://bugzilla.gnome.org/show_bug.cgi?id=705531) See first comment for complete description.
#include <string.h>
#include <stdio.h>
#include <gtk/gtk.h>
#include <gst/gst.h>
#include <gdk/gdk.h>
#if defined (GDK_WINDOWING_X11)
#include <gdk/gdkx.h>
#elif defined (GDK_WINDOWING_WIN32)
@groakat
groakat / batchInstallGst
Last active August 29, 2015 14:02
auto compilation of all gstreamer packages
#!/usr/bin/expect
mkdir ~/bin
cd ~/bin
wget https://gist.githubusercontent.com/groakat/ae74323933678c6ad04a/raw/1b871efcec60dc739a8c61f2a504d52ce4033dd3/gst-head
chmod +x gst-head
mkdir -p ~/src/gstreamer1/head
dummy file
@groakat
groakat / dsst_trial1.py
Created June 29, 2015 16:56
Running DSST tracker on video with ground truth
import os
import glob
import dlib
import numpy as np
import pyTools.system.videoExplorer as VE
import pyTools.videoProc.annotation as A
import scipy.io.wavfile
import pandas as pd
sound = scipy.io.wavfile.read('../data/day.wav')
pd.DataFrame(sound[1]).to_csv('../data/wav.csv', index=False, header=False)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.