- Log on to the WebMoira interface. You will need your MIT personal certificate set up correctly.
- Click this button.
- Enjoy.
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
#!/usr/bin/env python | |
''' | |
Pure Python implementation of some numerical optimizers | |
Created on Jan 21, 2011 | |
@author Jiahao Chen | |
''' |
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
using Distributions | |
export Measure, DiscreteMeasure, Estimator, EstimatorQuality, | |
blb, randsubset | |
abstract Measure | |
type DiscreteMeasure{S<:Number,T<:Number} <: Measure | |
points :: Vector{S} | |
weights :: Vector{T} |
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
# Hypergeometric random variate generators | |
# | |
# (c) 2013 Jiahao Chen <[email protected]> | |
# | |
# This file implements several random variate generators as described in the | |
# reference paper. | |
# | |
# Algorithm Function | |
# HBU randhg_hbu | |
# HIN randhg_hin |
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
Process: julia-readline [12132] | |
Path: /Users/USER/*/julia-readline | |
Identifier: julia-readline | |
Version: ??? | |
Code Type: X86-64 (Native) | |
Parent Process: Vim [11995] | |
Responsible: MacVim [11340] | |
User ID: 502 | |
Date/Time: 2013-10-28 23:52:40.788 -0400 |
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 Base.fetch; fetch(t::Vector) = [fetch(tt) for tt in t] | |
import Base.length; length(r1::RemoteRef)=length(fetch(r1)) | |
addprocs(8-nprocs()) #Run on 8 processors | |
chunkrange(i, nc) = floor((i-1)*nc)+1:floor(i*nc) | |
function chunk(z, n) | |
nc = length(z)/n | |
y = Vector{typeof(z[1])}[] | |
for i=1:n #Number of chunks | |
push!(y, (typeof(z[1]))[]) |
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
#Set up data partition | |
sudo mkdir /data | |
sudo chmod 777 /data | |
sudo "echo /dev/xvdb /data ext4 rw,user,exec,comment=cloudconfig 0 2 >> /etc/fstab" | |
sudo mount /data | |
#Install build environment | |
sudo sed -i "s/enabled=0/enabled=1" /etc/yum.repos.d/epel.epo | |
sudo yum -y update | |
sudo yum -y upgrade |
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
function bicgstabell(K::KrylovSubspace; tol::Real, l::Int=1) | |
k=-l | |
initrand!(K) | |
#XXX Choose r̃[0] | |
r[0]=b-nextvec(K) | |
u[-1]=0 | |
x[0]=K.v0 | |
ρ₀=1 | |
α=0 | |
ω=1 |
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
/* Experimental typographically tinkered IJulia stylesheet | |
* Copyright © 2013 Jiahao Chen <[email protected]> | |
* MIT License | |
* | |
* To use, place in ~/.ipython/profile_julia/static/custom/custom.css | |
* and refresh IJulia | |
* | |
* Based on suggestions from practicaltypography.com | |
*/ |
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
using Images | |
using JSON | |
auth_token=#Put your auth_token here | |
download("https://api.github.com/repos/JuliaLang/julia/contributors?access_token=$(auth_token)", "julia_contribs.json") | |
authors=JSON.parse(open("julia_contribs.json")) | |
for (idx, author) in enumerate(authors) | |
authorname=author["login"] | |
gravatar_filename = string("avatar_", authorname, ".png") | |
download(author["avatar_url"], gravatar_filename) | |
theimage = Images.imread(gravatar_filename) |
OlderNewer