Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| #!/usr/bin/python | |
| # coding=utf-8 | |
| # Python version of Zach Holman's "spark" | |
| # https://github.com/holman/spark | |
| # by Stefan van der Walt <[email protected]> | |
| """ | |
| USAGE: |
| """============================== | |
| Branded IPython Notebook Launcher | |
| ================================= | |
| Executing this module will create an overlay over ipython notebooks own static | |
| files and templates and overrides static files and templates and copies over all | |
| example notebooks into a temporary folder and launches the ipython notebook server. | |
| You can use this to offer an interactive tutorial for your library/framework/... |
| #!/usr/bin/env python | |
| import os | |
| import random | |
| import time | |
| import platform | |
| snowflakes = {} | |
| try: | |
| # Windows Support |
| """Simple utility script for semi-gracefully downgrading v3 notebooks to v2""" | |
| import io | |
| import os | |
| import sys | |
| from IPython.nbformat import current | |
| def heading_to_md(cell): | |
| """turn heading cell into corresponding markdown""" |
| from __future__ import print_function, division | |
| from timeit import default_timer as timer | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from numba import njit | |
| w = 400 | |
| h = 300 |
| import tensorflow as tf | |
| import numpy as np | |
| import time | |
| N=10000 | |
| K=4 | |
| MAX_ITERS = 1000 | |
| start = time.time() |
| #!/bin/bash | |
| # export DBUS_SESSION_BUS_ADDRESS environment variable because cron hates me | |
| PID=$(pgrep -u USER gnome-session-b) | |
| export DBUS_SESSION_BUS_ADDRESS=$(grep -z DBUS_SESSION_BUS_ADDRESS /proc/$PID/environ|cut -d= -f2-) | |
| /usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Flat-Plat' | |
| /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Flat-Plat' | |
| /usr/bin/gsettings set org.gnome.desktop.background picture-uri 'file://WALLPAPER-PATH' | |
| /usr/bin/gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected] set org.zzrough.gs-extensions.drop-down-terminal background-color 'rgb(69,90,100)' |
| import os | |
| import gym | |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| from collections import defaultdict | |