Strongly inspired by https://gist.github.com/heymonkeyriot/9a2f429caff5c091d5429666fa080403.
On Ubuntu :
sudo apt install python3 python3-pip| # Based on https://gist.github.com/bastibe/c0950e463ffdfdfada7adf149ae77c6f | |
| # Changes: | |
| # * Instead of overriding cd, we detect directory change. This allows the script to work | |
| # for other means of cd, such as z. | |
| # * Update syntax to work with new versions of fish. | |
| # * Handle virtualenvs that are not located in the root of a git directory. | |
| function __auto_source_venv --on-variable PWD --description "Activate/Deactivate virtualenv on directory change" | |
| status --is-command-substitution; and return | 
| https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk_server-2.02-mac_osx-10.11-setup.pkg | 
Strongly inspired by https://gist.github.com/heymonkeyriot/9a2f429caff5c091d5429666fa080403.
On Ubuntu :
sudo apt install python3 python3-pip| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Example", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], | 
| # Download installers | |
| mkdir ~/Downloads/nvidia | |
| cd ~/Downloads/nvidia | |
| wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run | |
| wget http://us.download.nvidia.com/XFree86/Linux-x86_64/384.59/NVIDIA-Linux-x86_64-384.59.run | |
| sudo chmod +x NVIDIA-Linux-x86_64-384.59.run | |
| sudo chmod +x cuda_8.0.61_375.26_linux-run | |
| ./cuda_8.0.61_375.26_linux-run -extract=~/Downloads/nvidia/ | |
| # Uninstall old stuff | |
| sudo apt-get --purge remove nvidia-* | 
| #!/bin/env fish | |
| function cd -d "change directory, and activate virtualenvs, if available" | |
| # first and foremost, change directory | |
| builtin cd $argv | |
| # find a parent git directory | |
| if git rev-parse --show-toplevel >/dev/null ^/dev/null | |
| set gitdir (realpath (git rev-parse --show-toplevel)) | |
| else | 
| """ A function that can read MNIST's idx file format into numpy arrays. | |
| The MNIST data files can be downloaded from here: | |
| http://yann.lecun.com/exdb/mnist/ | |
| This relies on the fact that the MNIST dataset consistently uses | |
| unsigned char types with their data segments. | |
| """ | 
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on | 
| # circle.py | |
| # by Dave Pape, for DMS 423 | |
| # | |
| # draws a circle, where the points for the vertex list are computed at run-time | |
| from math import * | |
| from pyglet.gl import * | |
| window = pyglet.window.Window() |