Skip to content

Instantly share code, notes, and snippets.

View jasdumas's full-sized avatar

Jasmine Daly jasdumas

View GitHub Profile
@jasdumas
jasdumas / example-mod-wsgi.py
Created June 16, 2016 18:24 — forked from tahajahangir/example-mod-wsgi.py
Python (2&3 compatible) Equivalent to phpinfo()
def application(environ, start_response):
from pyinfo import pyinfo
output = pyinfo()
# or pyinfo([('custom key', 'custom value'), ...])
start_response('200 OK', [('Content-type', 'text/html')])
return [output]
@jasdumas
jasdumas / lmgadget.R
Created January 24, 2016 20:11 — forked from wch/lmgadget.R
Shiny Gadget example: lmGadget
library(shiny)
# Example usage:
# lmGadget(mtcars, "wt", "mpg")
#
# Returns a list with two items:
# $data: Data with excluded rows removed.
# $model: lm (model) object.
lmGadget <- function(data, xvar, yvar) {
library(miniUI)