Skip to content

Instantly share code, notes, and snippets.

View timster's full-sized avatar

Tim Shaffer timster

  • Recharge Payments
  • Chattanooga, TN
View GitHub Profile
@timster
timster / reset.scss
Last active February 13, 2018 12:57
CSS Reset
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr,
acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong,
sub, sup, tt, var, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer,
header, hgroup, menu, nav, output, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
@timster
timster / html5.html
Last active August 29, 2015 13:55
HTML5 Template
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width">
<title>HTML5 Template</title>
<meta name="description" content="Awesome decription of this website.">
@timster
timster / _form.html
Last active August 29, 2015 13:56
Generic Django form renderer
{% if form.non_field_errors %}
<ul class="errors non-field-errors">
{% for err in form.non_field_errors %}
<li>{{ err }}</li>
{% endfor %}
</ul>
{% endif %}
<div style="display:none">{% csrf_token %}</div>
@timster
timster / auth_views.py
Last active March 25, 2021 11:40
Class-based views for Flask
from flask import Blueprint
from flask import url_for
from flask.ext.login import current_user
from flask.ext.login import login_user
from flask.ext.login import logout_user
from flask.ext.login import login_required
from forms import LoginForm
from forms import ForgotPasswordForm
from forms import ResetPasswordForm
# function to add to path if it doesn't already exist.
pathadd() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
export PATH="${PATH:+"$PATH:"}$1"
fi
}
# set up pretty man colors
# This is a logging configuration that will log to both the console and a file (based on 'handlers').
# The 'loggers' section describes what levels get output:
# textloading module will only output DEBUG messages (and above)
# requests module will only output WARN messages (and above)
# everything else will output INFO messages (and above)
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'loggers': {
@timster
timster / health.py
Last active January 28, 2021 22:17
Parsing apple health data
from datetime import datetime
from collections import namedtuple
from lxml import etree
EXPORT_FILE = 'apple_health_export/export.xml'
BodyMass = namedtuple('BodyMass', ('date_time', 'value'))
StepCount = namedtuple('StepCount', ('date_time', 'value'))
Distance = namedtuple('Distance', ('date_time', 'value'))
Stairs = namedtuple('Stairs', ('date_time', 'value'))
from flake8.main.application import Application as Flake8
from myproject.app import create_app
# Code in this module gets run every time the app restarts in debug mode.
# Therefore the linter runs every time the app restarts.
CYAN = '\x1b[1;36m'
RED = '\x1b[0;31m'
RESET = '\x1b[0m'
{
"breadcrumbs.enabled": true,
"breadcrumbs.symbolSortOrder": "position",
"editor.definitionLinkOpensInPeek": false,
"editor.fontFamily": "SF Mono",
"editor.fontLigatures": false,
"editor.fontSize": 11,
"editor.minimap.enabled": false,
"editor.rulers": [
120,

Interoperability Meeting 2019-04-01

Meeting Information

Date/Time: date, time

Purpose: purpose

Location: location