Skip to content

Instantly share code, notes, and snippets.

Amir Sani amirsani

Block or report user

Report or block amirsani

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:97123ed85fef5433754cad12e3463c5e
### Keybase proof
I hereby claim:
* I am amirsani on github.
* I am amirsani (https://keybase.io/amirsani) on keybase.
* I have a public key ASBAZOwTq1Gg8jVs71eejg7EucihUl_RENSdoTRixZQIKAo
To claim this, I am signing this object:
@amirsani
amirsani / validate_json.sh
Created May 22, 2017 — forked from kamiller/validate_json.sh
validate json with python via bash script
View validate_json.sh
echo '{"foo":"bar"}' | python -m json.tool >> /dev/null && exit 0 || echo "NOT valid JSON"; exit 1
@amirsani
amirsani / 0_reuse_code.js
Created Mar 26, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View install-numpy-scipy-matplotlib-openblas.sh
# based on http://osdf.github.io/blog/numpyscipy-with-openblas-for-ubuntu-1204-second-try.html
# do a fresh install of 12.04.3 LTS, then in a temp dir:
# OS
sudo apt-get install build-essential gfortran
sudo apt-get install git curl vim
# Python
sudo apt-get install python-dev python-pip
You can’t perform that action at this time.