This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dpkg-reconfigure --frontend noninteractive tzdata | |
sudo killall unity-panel-service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
from collections import defaultdict | |
f = open("stopwords.txt","r") | |
stopwords = [] | |
for line in f: | |
stopwords.append(line.strip()) | |
f.close() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def filterLines(lines): | |
size = 4 | |
for x,y in lines: | |
if x>16 or y>16: | |
size = 5 | |
ignored = [] | |
for x,y in lines: | |
if x==0: ignored.append(y) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
excersiseCards = { | |
"a":[50,"jumping jacks"], | |
"b":[20,"crunches"], | |
"c":[30,"squats"], | |
"d":[15,"pushups"], | |
"e":[60,"wall sit"], | |
"f":[10,"burpees"], | |
"g":[20,"arm circles"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from multiprocessing import Pool | |
excersiseCards = { | |
"a":[50,"jumping jacks"], | |
"b":[20,"crunches"], | |
"c":[30,"squats"], | |
"d":[15,"pushups"], | |
"e":[60,"wall sit"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys,os | |
import time | |
import argparse | |
import matplotlib as mpl | |
mpl.use('Agg') | |
import matplotlib.pyplot as plt | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Using data from here http://pjreddie.com/projects/mnist-in-csv/ | |
-- Each row is: label, comma seperated version of 28*28 greyscale image | |
Good example: http://scikit-learn.org/stable/auto_examples/classification/plot_digits_classification.html#example-classification-plot-digits-classification-py | |
''' | |
import numpy as np |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import time | |
import cv2 | |
import numpy as np | |
def getOutline(img): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import sys | |
import os | |
import time | |
import warnings | |
#warnings.filterwarnings("ignore") | |
#with warnings.catch_warnings(): | |
# warnings.simplefilter("ignore") | |
import matplotlib as mpl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim:fenc=utf-8 | |
# | |
# Copyright © %YEAR% %USER% <%MAIL%> | |
# | |
# Distributed under terms of the %LICENSE% license. | |
import sys | |
import time |