Skip to content

Instantly share code, notes, and snippets.

Benjamin Keating bkeating

Block or report user

Report or block bkeating

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View etcc-020140212-status-boards-meetup.md

Status Boards

East Troy Computer Club Meetup
Wednesday, Feb 18th, 02013
7pm @ 2894 On Main, East Troy, WI
http://etcc.io/

Many thanks to 2894 On Main for staying open extra late just for us!

Potential agenda

View gist:9145109
salt-020031212-schwartz
salt-020060113-cavanagh-schwartz
salt-020060213-lansing
salt-020060310-kelly
salt-020060414-wales
salt-020060512-anderson-hearst
salt-020060626-eno-wright
salt-020060714-rendon
salt-020060922-schell
salt-020061013-baez
@bkeating
bkeating / gist:10936636
Created Apr 16, 2014
Turn your web browser into a notepad
View gist:10936636
data:text/html, <html contenteditable>
@bkeating
bkeating / gist:10937264
Created Apr 16, 2014
Instant HTTP server via Python
View gist:10937264
python -m SimpleHTTPServer 8080
View app.py
# -*- coding: utf-8 -*-
from flask import Flask, jsonify, render_template, request
app = Flask(__name__)
from subprocess import check_output
@app.route('/_add_numbers')
def add_numbers():
"""Add two numbers server side, ridiculous but well..."""
View models.py
# -*- coding: utf-8 -*-
import datetime as dt
from django.db import models
from django.contrib.auth.models import User
class CommonFields(models.Model):
title = models.CharField(max_length=140)
@bkeating
bkeating / servo.ino
Created May 28, 2014
A simple servo sweep using PWM. Taken from an example in the Arduino IDE application.
View servo.ino
// Sweep
// by BARRAGAN <http://barraganstudio.com>
// This example code is in the public domain.
#include <Servo.h>
Servo myservo; // create servo object to control a servo
// a maximum of eight servo objects can be created
@bkeating
bkeating / playing-with-css-(etccmeetup).md
Last active Aug 29, 2015
Playing with CSS (ETCC Meetup)
View playing-with-css-(etccmeetup).md

Playing with CSS (ETCC Meetup)

Watch this space for notes related to this meetup.

Software Hit List (apps you need to try)

@bkeating
bkeating / sound_sensor.ino
Created Sep 2, 2014
Basic sound sensor sketch for Arduino
View sound_sensor.ino
/*
This is the code to make a LED blink with the music.
You have to set the threshold so it' sensible enough to make the led blink.
You connect an LED to PIN13 and the Sound Sensor to Analog Pin 0
*/
int led = 13;
int threshold = 500; //Change This
int volume;
@bkeating
bkeating / 2894Menu.coffee
Created Sep 2, 2014
East Troy's 2894 On Main cafe [food] menu for Hubot.
View 2894Menu.coffee
# Description:
# East Troy's 2894 On Main cafe [Food] menu for Hubot.
#
# Dependencies:
# "cheerio: "0.7.0"
#
# Configuration:
# None
#
# Commands:
You can’t perform that action at this time.