Skip to content

Instantly share code, notes, and snippets.


Alex LordThorsen rawrgulmuffins

View GitHub Profile

Using asciinema

asciinema rec
# commands here
asciicast2gif <input path> <output_path>.gif

Console Gif with ttyrec

source /usr/local/bin/
for name in $list_of_names
rmvirtualenv $name
View Bash find all files and extra just file names
grep -r "copyright" flask/ -I | awk '{print $1}' | sed 's/:.*//' | sed 's/flask\/\///'
View Jupyter notebook locked traceback
jupyter notebook --no-browser
/home/alord/.virtualenvs/adhoc_notebooks/lib/python3.4/site-packages/widgetsnbextension/ UserWarning: To use the jupyter-js-widgets nbextension, you'll need to update
the Jupyter notebook to version 4.2 or
the Jupyter notebook to version 4.2 or later.""")
[I 20:11:41.327 NotebookApp] Serving notebooks from local directory: /home/alord/git/adhoc_notebooks/onefs_jobs
[I 20:11:41.327 NotebookApp] 0 active kernels
[I 20:11:41.327 NotebookApp] The Jupyter Notebook is running at: http://****:8888/
[I 20:11:41.327 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 20:11:50.383 NotebookApp] 302 GET / (****) 1.21ms
[E 20:18:01.631 NotebookApp] Unhandled error in API request
rawrgulmuffins / example.csv
Created Feb 28, 2016
Read from csv example
View example.csv
test test2 test3
test4 test5 test6

On this guided tour we will cover the fundamentals of Flask. Comme learn how to use SSL certifications, Flask's debug console, Routing, HTTP Responses, and the basic Flask objects. You'll walk away with the foundation (aka, things to google later) for writing web applications using Flask.

In addition this tour comes with a Juypter (IPython) notebook. This notebook is meant to be a supplemental for the tour itself and a index to use as a refresher when you take this knowledge out into the wild.

View gist:6025599
{% macro form_field(field) -%}
{% set with_label = kwargs.pop('with_label', False) %}
{% set placeholder = '' %}
{% if not with_label %}
{% set placeholder = field.label.text %}
{% endif %}
<div class="control-group {% if field.errors %}error{% endif %}">
{% if with_label %}
<label for="{{ }}" class="control-label">
{{ field.label.text }}{% if field.flags.required %} *{% endif %}: