Skip to content

Instantly share code, notes, and snippets.

@herbps10
herbps10 / .block
Last active November 3, 2016 19:39
IQ with comparison
license: mit
@herbps10
herbps10 / .block
Last active November 14, 2016 16:52
IQ
license: mit
@herbps10
herbps10 / .block
Last active November 3, 2016 19:24
IQ Distribution Mean/SD Slider
license: mit
border: no
@herbps10
herbps10 / .block
Last active October 25, 2016 18:28
IQ Distribution Master
license: mit
@herbps10
herbps10 / raytracer.sh
Created October 22, 2016 00:10
Bash Ray Tracer
#!/bin/bash
#
#
# Bash Raytracer
# Herb Susmann
#
PIXEL_INCR="0.05"
# Object type IDs
@herbps10
herbps10 / admin.py
Created June 18, 2015 14:04
Setting up SQLAlchemy with Application Factory pattern and Blueprints
from flask import current_app, Blueprint, render_template
from database import db_session
from model import Product
admin = Blueprint('admin', __name__, url_prefix='/admin')
@admin.route('/')
def index():
product = db_session.query(Product).first()