Skip to content

Instantly share code, notes, and snippets.

View emilyhorsman's full-sized avatar

Emily Horsman emilyhorsman

View GitHub Profile
/*
* Adafruit Arduino - Lesson 5. Serial Monitor
* Based on https://learn.adafruit.com/adafruit-arduino-lesson-5-the-serial-monitor?view=all
* Slight modifications by Emily Horsman
* 'HC495 Datasheet: https://www.sparkfun.com/datasheets/IC/SN74HC595.pdf
*/
int latchPin = 5; // RCLK (storage register clock)
int clockPin = 6; // SRCLK (shift register clock)
int dataPin = 4; // SER (serial input)
/*
* Traffic signal RGB LED from Adafruit Arduino lesson suggestion
*/
int redLEDPin = 11;
int greenLEDPin = 10;
int blueLEDPin = 9;
int buttonPin = 7;
boolean lastButtonState;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Colours</title>
<script type="text/javascript">
function populateColours(colours) {
var t = document.getElementById("colours");
for (var c in colours) {

Many topics in nutritional science attempt to show the effects of a nutrient on health. These studies share a large confound — when we adjust the quantity of a nutrient in a subjects diet the health effects vary. This variance depends on which nutrient (e.g. unsaturated fat or refined carbohydrate) replaces dietary fat. Nutritional studies of coffee have a unique opportunity in this regard. It can be added with no modifications to subjects diets, as coffee without additives contributes virtually zero energy.

The objectives of this article are to assess the current claims around regular consumption of coffee. Can coffee be considered a beneficial component in one’s diet?

Coffee has a long history of numerous health claims, including: increased or decreased risk of cardiovascular disease; protective effects against Parkinson’s disease, type 2 diabetes, and cancer; effective appetite suppressant for weight management; increased or decreased all-cause mortality.

One of the challenges behind affirming or reject

Adding Twitter tagline to your broadcast

step1

step2

step3

step4

#!/usr/bin/env python
from datetime import date, timedelta
from os import listdir, stat
from os.path import isfile, join
def colour(t):
c = '\033[94m'
return c + t + '\033[0m'
import requests
import requests.auth
import redis
import config
def is_a_daily_goal(moderators, thread):
if thread["author"] not in moderators:
return False
t = thread["title"].lower()
@emilyhorsman
emilyhorsman / Procfile
Created May 21, 2015 20:52
Setting up Heroku/Python/postgres/Flask
web: gunicorn main:app --log-file=-
var gulp = require('gulp');
var jade = require('gulp-jade');
var postcss = require('gulp-postcss');
var sourcemaps = require('gulp-sourcemaps');
var autoprefixer = require('autoprefixer-core');
var csswring = require('csswring');
var nested = require('postcss-nested');
var mixins = require('postcss-mixins');
var vars = require('postcss-simple-vars');
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer
from multiprocessing import freeze_support, Process, Queue, Pool
import sys, time, json, signal
# mock
class RFID:
def __init__(self):
time.sleep(0.04)