This file contains 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 theano | |
from theano import tensor as T | |
from theano.tensor.nnet import conv | |
from skimage import io | |
import numpy | |
import pylab | |
rng = numpy.random.RandomState(23455) | |
# instantiate 4D tensor for input |
This file contains 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 | |
import os | |
import time | |
import cPickle as pickle | |
import sys | |
from skimage import io, transform | |
from lasagne import layers | |
from lasagne.updates import nesterov_momentum | |
from nolearn.lasagne import NeuralNet | |
from sklearn.metrics import confusion_matrix |
This file contains 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 os | |
import numpy as np | |
from skimage import io | |
from nolearn.lasagne import NeuralNet | |
from lasagne.layers import InputLayer | |
from lasagne.layers import Conv2DLayer | |
from lasagne.layers import MaxPool2DLayer | |
from lasagne.layers import DropoutLayer | |
from lasagne.layers import DenseLayer |
This file contains 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 boto | |
import boto.s3 | |
import os.path | |
import sys | |
# Fill these in - you get them when you sign up for S3 | |
AWS_ACCESS_KEY_ID = '' | |
AWS_ACCESS_KEY_SECRET = '' | |
# Fill in info on data to upload |
This file contains 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 json | |
import requests | |
matlab_code = "a=magic(3);disp(a)" | |
python_code = "print 'Hello World!!'" | |
data = {} | |
data['matlab_code'] = matlab_code | |
data['python_code'] = python_code |
This file contains 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 zmq.eventloop import ioloop | |
ioloop.install() | |
from zmq.eventloop.zmqstream import ZMQStream | |
from functools import partial | |
from tornado import gen | |
from tornado.concurrent import Future | |
from jupyter_client import BlockingKernelClient | |
from pprint import pprint | |
import logging, os, zmq |
This file contains 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 zmq.eventloop import ioloop | |
ioloop.install() | |
from zmq.eventloop.ioloop import ZMQIOLoop | |
from zmq.eventloop.zmqstream import ZMQStream | |
from functools import partial | |
from jupyter_client import MultiKernelManager | |
from tornado import gen | |
from tornado.concurrent import Future | |
from pprint import pprint |
This file contains 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
//working gulpfile.js for yeoman | |
//from https://github.com/yeoman/generator-angular/issues/1299 | |
// Generated on 2016-03-15 using generator-angular 0.15.1 | |
'use strict'; | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
var openURL = require('open'); | |
var lazypipe = require('lazypipe'); | |
var rimraf = require('rimraf'); |
This file contains 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 zmq.eventloop import ioloop | |
ioloop.install() | |
from zmq.eventloop.ioloop import ZMQIOLoop | |
from zmq.eventloop.zmqstream import ZMQStream | |
from functools import partial | |
from jupyter_client import MultiKernelManager | |
from tornado import gen | |
from tornado.concurrent import Future | |
from pprint import pprint |
This file contains 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
# To query which package contains my file if installed | |
dpkg-query -S ASTConsumer.h | |
libclang-6.0-dev: /usr/lib/llvm-6.0/include/clang/AST/ASTConsumer.h | |
# if not installed search here | |
https://packages.ubuntu.com/ | |
# More general case | |
# https://www.ostechnix.com/find-package-provides-specific-file-linux/ | |
# Arch Linux, Antergos, Manjaro Linux |
OlderNewer