Skip to content

Instantly share code, notes, and snippets.

@unwiredben
unwiredben / win-firefox.py
Created July 24, 2021 22:17
Macropad configuration file for Firefox web browser on WIndows. Use with the CircuitPython code at https://learn.adafruit.com/macropad-hotkeys/custom-configurations
# MACROPAD Hotkeys example: Firefox web browser for Windows
from adafruit_hid.keycode import Keycode # REQUIRED if using Keycode.* values
app = { # REQUIRED dict, must be named 'app'
'name' : 'Firefox', # Application name
'macros' : [ # List of button macros...
# COLOR LABEL KEY SEQUENCE
# 1st row ----------
(0x004000, '< Back', [Keycode.ALT, Keycode.LEFT_ARROW]),
@unwiredben
unwiredben / cp_game.ino
Created November 28, 2019 01:47
Simple CircuitPlayground classic game where you try to stop the LED at the right time
// a simple CircuitPlayground game by Ben Combee (age 45) and Elias Combee (age 6)
#include <Adafruit_CircuitPlayground.h>
int i = 0;
int direction = 1;
int speed = 80;
void setup() {
CircuitPlayground.begin();
@unwiredben
unwiredben / code.py
Last active November 20, 2019 03:19
edited code.py from Ben's supercon 2019 alt badge
from adafruit_pybadger import PyBadger
import time
pybadger = PyBadger()
pybadger.auto_dim_display(delay=10)
first_display = True
rainbow = [
@unwiredben
unwiredben / BlankTest.js
Last active December 20, 2015 14:39
Part of the internal EnyoBench application, showing an enyo.Application and several ViewControllers
// simple test that shows a mostly blank page for 1 second. used to calibrate
// system FPS measurement by testing the browser at rest.
enyo.kind({
name: "enyoBench.BlankTest",
kind: "enyoBench.SpeedTest",
testName: "Baseline FPS (Blank Page)",
view: enyo.kind({
components: [
{tag: "h1", content: "Calibrating FPS Counter"}
]
@unwiredben
unwiredben / add-reviewed-by-to-github.js
Created July 11, 2012 06:00
Add Reviewed By Userscript
// ==UserScript==
// @name add-reviewed-by-to-github
// @namespace net.combee
// @include https://github.com/*/pull/*
// @version 1
// ==/UserScript==
/*global jQuery */
/*jslint browser: true */
var main = function() {
@unwiredben
unwiredben / TLC_Chumbilight.ino
Created April 23, 2012 23:08
Chumbilight sketch for Arduino
/*
* TLC_Chumbylight.pde
*
* Sketch to implement Arduino-side of Chumby "Ambilight" backlighting
*
* Ben Combee, January 2010
*/
#include <Tlc5940.h>
@unwiredben
unwiredben / zombieOffer.md
Created October 14, 2011 19:11
webOSZombie sticker offer

Send a SELF-ADDRESSED STAMPED ENVELOPE (this means it has your address already written on it and an unused stamp in the upper-right corner!) to:

Ben Combee
5607 Joe Sayers Ave
Austin, TX 78756

If you include something fun (other stickers, pictures, random cards, patches, etc), I'll send back some additional techie stickers from my collection.

@unwiredben
unwiredben / sdltts.c
Created October 12, 2011 15:55
Updated sdltts.c with background playback
/*************************************************************************/
/* */
/* Language Technologies Institute */
/* Carnegie Mellon University */
/* Copyright (c) 2001 */
/* All Rights Reserved. */
/* */
/* Fahrzin Hemmati */
/* Copyright (c) 2011 */
/* */
@unwiredben
unwiredben / LICENSE.txt
Created September 18, 2011 17:48 — forked from 140bytes/LICENSE.txt
140byt.es -- squareImg
DO WHAT THE F*** YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Ben Combee <combee@techwood.org>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE F*** YOU WANT TO PUBLIC LICENSE