Skip to content

Instantly share code, notes, and snippets.

View josh-gree's full-sized avatar

Joshua Greenhalgh josh-gree

View GitHub Profile
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '607342782800424',
xfbml : true,
version : 'v2.6'
});
};
curl -L -O http://www.nano-editor.org/dist/v2.2/NT/nano-2.2.6.zip
unzip nano-2.2.6.zip -d nano
mv nano ~/nano_install
echo -e "#!/bin/sh\nexec ~/nano_install/nano.exe \"\$@\"" > nano
chmod u+x nano
echo "export PATH=$PATH:~" > ~/.bashrc
package comm
import (
"fmt"
"time"
"bytes"
"encoding/json"
"net/http"
"github.com/labstack/echo"
)
from . import ChunkSource
import numpy as np
import h5py
class MySource(ChunkSource):
def __init__(self, fnames,name, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fnames = fnames
self.name = name
@josh-gree
josh-gree / omp.py
Created March 14, 2016 22:07 — forked from vene/omp.py
naive, cholesky and batch Orthogonal Matching Pursuit
# -*- coding: utf-8 -*-
"""
http://www.cs.technion.ac.il/~ronrubin/Publications/KSVD-OMP-v2.pdf
parametrization by error is still in progress
"""
from time import time
import numpy as np
from scipy import linalg
import matplotlib.pyplot as pl