This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# vcard generation utility | |
# first argument is the file to be written to. It will be appended to with each new write. | |
# ex: $./vcard card | |
printWrite() { | |
# Take printf formatted string, append newline, and write to stdout and stderr | |
printf "$1\n" | tee /dev/fd/2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// VotesTableViewController.swift | |
// Voting | |
// | |
// Created by Stephan Fitzpatrick on 12/16/16. | |
// Copyright © 2016 Stephan Fitzpatrick. All rights reserved. | |
// | |
import UIKit |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from contextlib import contextmanager | |
from functools import singledispatch, partial | |
from pathlib import Path | |
import pkg_resources | |
# development config uri for base distribution | |
DEVELOPMENT_CONFIG_URI = pkg_resources. \ | |
get_distribution('distribution_package_name').get_resource_filename( |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyramid.config import Configurator | |
from configparser import ConfigParser # This will be different in Python 2.7 | |
from functools import partial | |
import os | |
def main(global_config, **settings): | |
""" This function returns a Pyramid WSGI application. | |
""" | |
config = Configurator(settings=settings) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
Created by stephanfitzpatrick on 6/15/17. | |
doctype html | |
html(lang= "#{ request.locale_name }") | |
head | |
meta(charset="utf-8") | |
meta(http-equiv="X-UA-Compatible", content="IE=edge") | |
meta(name="viewport", content="width=device-width, initial-scale=1.0") | |
meta(name="description", content="pyramid web application") | |
meta(name="author", content="Pylons Project") |