Skip to content

Instantly share code, notes, and snippets.

import numpy as np
def GEPP(A, b, doPricing = True):
Gaussian elimination with partial pivoting.
input: A is an n x n numpy matrix
b is an n x 1 numpy array
output: x is the solution of Ax=b
with the entries permuted in
import random
import sys
population_size = int(sys.argv[1])
e = sys.exc_info()[0]
print "Please enter the population sample size i.e how many times to filp the coin"
# Sublime Text 3 install with Package Control (last update: 9 Feb 2016)
# No need to download this script, just run it on your terminal:
# $ curl -L | sh
# When you need to update Sublime Text, run this script again.
greenspray / db.php
Created Jan 28, 2016 — forked from luckyshot/db.php
PHP/MySQL (PDO) method with named parameters
View db.php
PHP/MySQL (PDO) method with named parameters
$config = [
'mysql' => [
'database' => 'database',
'user' => 'root',