if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
| import theano | |
| from pylearn2.models import mlp | |
| from pylearn2.training_algorithms import sgd | |
| from pylearn2.termination_criteria import EpochCounter | |
| from pylearn2.datasets.dense_design_matrix import DenseDesignMatrix | |
| import numpy as np | |
| from random import randint | |
| class XOR(DenseDesignMatrix): |
| angular.module('myApp', | |
| ['ngRoute', 'myApp.services', 'myApp.directives'] | |
| ) | |
| .config(function(AWSServiceProvider) { | |
| AWSServiceProvider.setArn('arn:aws:iam::<ACCOUNT_ID>:role/google-web-role'); | |
| }) | |
| .config(function(StripeServiceProvider) { | |
| StripeServiceProvider.setPublishableKey('pk_test_YOURKEY'); | |
| }) | |
| .config(function($routeProvider) { |
if you are using linux, unix, os x:
pip install -U setuptools
pip install -U pip
pip install numpy
pip install scipy
pip install matplotlib
#pip install PySide
When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:
const Article = require('../../../../app/models/article');Those suck for maintenance and they're ugly.
| import scala.slick.lifted.{TableQuery => _} | |
| import scala.slick.ast._ | |
| import scala.slick.driver._ | |
| import scala.language.implicitConversions | |
| /** Extends QueryInvoker to allow overriding used SQL statement when executing a query */ | |
| trait OverridingInvoker extends JdbcDriver{ | |
| // get the extended QueryInvoker into the .simple._ implicits | |
| override val Implicit: Implicits = new Implicits | |
| override val simple: Implicits with SimpleQL = new Implicits with SimpleQL |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| -- Playing around with persistent vectors in Purescript | |
| -- Imitiates the interface from Data.Array, but uses Mori.js persistent | |
| -- vector implementation e.g. to avoid copy-on-write etc. | |
| module Data.Vector where | |
| import Data.Maybe | |
| -- LOL I have no idea what I'm doing, but reverse engineering from the | |
| -- JS output, this actually seems to work | |
| foreign import data Mori :: * |
| from pymc import * | |
| from scipy.stats import norm | |
| import pylab as plt | |
| # Same model as the tutorial | |
| n = 1000 | |
| x1 = norm.rvs(0, 1, size=n) | |
| x2 = -x1 + norm.rvs(0, 10**-3, size=n) | |
| x3 = norm.rvs(0, 1, size=n) |
| dependencies: | |
| cache_directories: | |
| - "~/.stack" | |
| pre: | |
| - wget https://github.com/commercialhaskell/stack/releases/download/v0.1.2.0/stack-0.1.2.0-x86_64-linux.gz -O /tmp/stack.gz | |
| - gunzip /tmp/stack.gz && chmod +x /tmp/stack | |
| - sudo mv /tmp/stack /usr/bin/stack | |
| override: | |
| - stack setup | |
| - stack build |
We are looking for a generalist, talented & enthusiastic about joining an early phase startup, looking to have a big impact on the product, design & architecture of our system.
Sellpy is one of Sweden’s fastest growing startups and have already helped thousands of people to sell the things they don’t use anymore. We want to revolutionize the way we sell used goods and make