Skip to content

Instantly share code, notes, and snippets.

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
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
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
@jayendra13
jayendra13 / botos3upload.py
Last active November 6, 2015 07:03 — forked from SavvyGuard/botos3upload.py
Use boto to upload directory into s3
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
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
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
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
//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');
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
# 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