Skip to content

Instantly share code, notes, and snippets.

View asinghvi17's full-sized avatar
🔍

Anshul Singhvi asinghvi17

🔍
  • Columbia University
  • New York, NY
View GitHub Profile
@asinghvi17
asinghvi17 / gradasc.jl
Last active February 4, 2019 16:44
Julia interactive gradient ascent on a contour map (2D or 3D), can be changed to a heatmap (which is nice) or a surface (which has some bugs).
##setup
# using Pkg
# pkg"add Makie ForwardDiff"
## begin program
using Makie,
ForwardDiff
# using MakieThemes
@asinghvi17
asinghvi17 / getting-julia
Last active December 23, 2018 17:24 — forked from benmarwick/getting-julia
install and build Julia in ubuntu
#!/bin/bash
CWD=$(pwd)
DOWNDIRDIR="~/git" # modify as necessary for the directory you want to install Julia into
cd DOWNDIR # go to the download directory
git clone -b master git://github.com/JuliaLang/julia.git # clone the repo
# needed these on EC2
sudo apt-get update
sudo apt-get install gcc
@asinghvi17
asinghvi17 / RPS-101.py
Created November 12, 2018 23:22
Bad RPS-101 code in Python.
'''
@author Anshul Singhvi
@author Walter Phillips
Aug 31. 2017
CMPT 100 B Intro to Computer Science
Project: RPS-101
'''