Verify Permissions
diskutil verifyPermissions /
Repair Permissions
diskutil repairPermissions /
# Implementation of a simple MLP network with one hidden layer. Tested on the iris data set. | |
# Requires: numpy, sklearn, theano | |
# NOTE: In order to make the code simple, we rewrite x * W_1 + b_1 = x' * W_1' | |
# where x' = [x | 1] and W_1' is the matrix W_1 appended with a new row with elements b_1's. | |
# Similarly, for h * W_2 + b_2 | |
import theano | |
from theano import tensor as T | |
import numpy as np | |
from sklearn import datasets |
# tested on silius with conda python(2.7) installed | |
TOOLSDIR=/host/silius/local_raid/ravnoor/00_toolbox | |
conda install libgcc | |
###################################################### | |
# build and install gcc > 4.8 (c++ 11 support) | |
wget http://ca.mirror.babylon.network/gcc/releases/gcc-4.9.4/gcc-4.9.4.tar.gz | |
tar xzf gcc-4.9.4.tar.gz |
#' Get a PubMed search index | |
#' @param query a PubMed search string | |
#' @return the XML declaration of the search | |
#' @example | |
#' # Which articles discuss the WHO FCTC? | |
#' pubmed_ask("FCTC OR 'Framework Convention on Tobacco Control'") | |
pubmed_ask <- function(query) { | |
# change spaces to + and single-quotes to URL-friendly %22 in query | |
query = gsub("'", "%22", gsub(" ", "+", query)) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# Convert EPS to TIFF using GraphicsMagick | |
DIR="$( pwd )" | |
`unalias gm` # gm is aliased to gitmerge in OSX 10.11.3 with Homebrew | |
find "$DIR" -iname "*.eps" | sed 's/^.\///g' | while read EPS | |
do | |
echo "converting to TIFF ($i)" | |
TIFF=`echo "$EPS" | sed "s/.eps$/.tiff/"` |
#!/bin/bash | |
# Requires: brew install imagemagick --with-little-cms --with-little-cms2 | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
echo "" | |
echo "" | |
echo "" | |
echo "" | |
echo "All the images in the following folder will be changes: " |
#!/bin/sh | |
display_usage() { | |
echo "Usage:" | |
echo " ovpn.sh <server-prefix>" | |
echo " ovpn.sh ca" | |
echo " server examples: ca, us, ca1, ca2 ..." | |
} | |
if [ $# -le 0 ]; then |
#!/bin/tcsh | |
#flip monitor left to right in dual-monitor configuration | |
xrandr --output VGA-0 --right-of DVI-I-1 |