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
/* gnome-terminal */ | |
@define-color term-win-bg #262626; | |
@define-color term-tab-inactive-bg #333333; | |
@define-color term-tab-active-bg #424242; | |
@define-color ubuntu-orange #fb9267; | |
TerminalScreen { | |
-TerminalScreen-background-darkness: 0.95; | |
background-color: @term-win-bg; | |
} |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import wave | |
import sys | |
import scipy.fftpack | |
import os | |
import argparse | |
def parse_args(): |
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 -*- | |
# | |
import argparse | |
import errno | |
import itertools | |
import logging | |
import multiprocessing as mp | |
import os | |
import re |
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
require 'torch' | |
require 'optim' | |
require 'nn' | |
require 'audio' | |
require 'xlua' | |
-- Parsing of the commandline arguments | |
function cmdlineargs(arg) | |
local cmd = torch.CmdLine() | |
cmd:text() |
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 numpy as np | |
from collections import namedtuple | |
from scipy.misc import imsave | |
from matplotlib import pyplot as plt | |
import functools | |
import time | |
import argparse | |
AMBIENT = 0.1 |
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
//Hook Class | |
template<typename I , typename O> | |
template<std::size_t P , typename... Tp> | |
inline typename std::enable_if<P == sizeof...(Tp), void>::type | |
Cl_Interface<I,O>::addkernelargs(std::tuple<Tp...> & t,cl::Kernel &kernel) | |
{ | |
} | |
//Iteration for Class | |
template<typename I , typename O> |
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
template <typename... Ts> class Tuple{}; | |
template <typename T,typename... Ts> class Tuple<T, Ts...>:Tuple<Ts...>{ | |
public: | |
Tuple(T t,Ts... args):Tuple<Ts...>(args...),curt(t){}; | |
private: | |
T curt; | |
}; |
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 python2 | |
# -*- coding: utf-8 -*- | |
from __future__ import (print_function, unicode_literals, | |
absolute_import, division) | |
from emulator import MarioEmulator | |
from packages.states.state import State | |
from packages.states.simplestate import SimpleState | |
from packages.actions.action import Action |
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
from Tkinter import * | |
from PIL import ImageTk, Image | |
class App(Frame): | |
im = None | |
grayIm = None | |
def openFile(self, file_path): |
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 argparse | |
from scipy import misc | |
from scipy.ndimage.filters import convolve as convolveim | |
import numpy as np | |
import sys | |
from numpy import real | |
def parseArgs(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('inputimage', type=misc.imread) |