Skip to content

Instantly share code, notes, and snippets.

View omimo's full-sized avatar

Omid Alemi omimo

View GitHub Profile
@omimo
omimo / crbm.py
Created December 21, 2015 23:40 — forked from gwtaylor/crbm.py
Theano CRBM demonstration
""" Theano CRBM implementation.
For details, see:
http://www.uoguelph.ca/~gwtaylor/publications/nips2006mhmublv
Sample data:
http://www.uoguelph.ca/~gwtaylor/publications/nips2006mhmublv/motion.mat
@author Graham Taylor"""
import numpy
[[4,5],[3,4],[2,3],[1,2],[0,1],[9,10],[8,9],[7,8],[6,7],[0,6],[14,15],[13,14],[12,13],[19,20],[18,19],[17,18],[16,17],[12,16],[24,25],[23,24],[22,23],[21,22],[12,21],[11,12],[0,11]]
@omimo
omimo / triSelect.js
Created September 3, 2016 02:27
A jQuery plugin for a three-sided selector
/*
A jQuery plugin for a three-sided selector
By Omid Alemi
Created: September 2, 2016
*/
(function ( $ ) {
var controlWidth = 80;
@omimo
omimo / cmd.tex
Created January 25, 2017 21:38
Circled numbers in latex
%% Circle
% from http://tex.stackexchange.com/questions/7032/good-way-to-make-textcircled-numbers/91070
\newcommand*\circled[1]{\tikz[baseline=(char.base)]{
\node[shape=circle,draw,inner sep=0.8pt] (char) {#1};}}
@omimo
omimo / resample_series.py
Created February 13, 2017 05:28
Resample and merge multiple time series with Pandas
# Resample time series
# Omid (Feb 2017)
import pandas as pd
import numpy as np
FILENAME_A = '2015_27_11-12_7_15---improv#1@acc+antonio+right.txt'
FILENAME_B = '2015_27_11-12_7_15---improv#1@acc+bevin+right.txt'
FILENAME_V = '2015_27_11-12_7_15---improv#1@acc+vanessa+right.txt'
@omimo
omimo / index.html
Last active February 25, 2017 12:44
A sketch of motion capture frames
<html>
<head>
<title>
Movement Data Visualization
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<style>
* {
box-sizing: border-box
@omimo
omimo / index.html
Last active March 30, 2017 10:37
Basic Effort Actions - Entangled & Colored
<html>
<head>
<title>
[Visualizing Movement Data with D3.js]
</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.17/d3.min.js"></script>
<script src="mviz.js"></script>
<style>
* {
box-sizing: border-box
gistup
function [ ] = ipimat_to_imgs( filename, out_folder, prefix, w, h, thres )
%IPIMAT_TO_IMGS Summary of this function goes here
% Detailed explanation goes here
input = load(filename);
mkdir(out_folder);
for f=1:length(input.DepthFrame)
@omimo
omimo / index.html
Last active December 17, 2017 11:43
<html>
<head>
<title>
[Visualizing Movement Data with D3.js]
</title>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://omid.al/Mova-Viz/MovaViz-v0.1.1.js"></script>
<style>
* {