Skip to content

Instantly share code, notes, and snippets.

Alex LordThorsen rawrgulmuffins

Block or report user

Report or block rawrgulmuffins

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 reviewability_with_gifs.md

Using asciinema

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

Console Gif with ttyrec

View virtualenv_remover.sh
#!/bin/bash
source /usr/local/bin/virtualenvwrapper.sh
list_of_names=$(lsvirtualenv)
for name in $list_of_names
do
rmvirtualenv $name
done
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/__init__.py:30: UserWarning: To use the jupyter-js-widgets nbextension, you'll need to update
the Jupyter notebook to version 4.2 or later.al
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
rawrgulmuffins / example.csv
Created Feb 28, 2016
Read from csv example
View example.csv
test test2 test3
test4 test5 test6
View a_guided_tour_of_flask.md

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="{{ field.id }}" class="control-label">
{{ field.label.text }}{% if field.flags.required %} *{% endif %}:
You can’t perform that action at this time.