Skip to content

Instantly share code, notes, and snippets.

@dwhacks
dwhacks / style.css
Created December 19, 2013 03:50
dwhacksstyles
/*
Theme Name: Twenty Fourteen
Theme URI: http://wordpress.org/themes/twentyfourteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: In 2014, our default theme lets you create a responsive magazine website with a sleek, modern design. Feature your favorite homepage content in either a grid or a slider. Use the three widget areas to customize your website, and change your content's layout with a full-width page template and a contributor page to show off your authors. Creating a magazine website with WordPress has never been easier.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, green, white, light, dark, two-columns, three-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-background, custom-header, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, ac
@dwhacks
dwhacks / Attiny85_watchdog_example.ino
Created December 20, 2013 14:07
Attiny85 Watchdog
/*
* Watchdog Sleep Example
* Demonstrate the Watchdog and Sleep Functions
* LED on digital pin 0
*
* KHM 2008 / Lab3/ Martin Nawrath nawrath@khm.de
* Kunsthochschule fuer Medien Koeln
* Academy of Media Arts Cologne
*
* Modified on 5 Feb 2011 by InsideGadgets (www.insidegadgets.com)
@dwhacks
dwhacks / Attiny85_blinkstrip_batteryMonitor.ino
Last active December 4, 2020 04:55
Attiny 85 blinking RGB LED strip + battery monitor
/*
Attiny85_batteryMonitor
Ideas borrowed from: https://github.com/unixbigot/Flat-Mate
modified for arduino tiny core by DWhacks
Added control of RGB LED strip or possibly just an RGB LED for use as a rear Bicycle light
*@@ Voltage trigger levels.
*
@dwhacks
dwhacks / Attiny85_mailbox_TX.ino
Last active December 4, 2020 04:59
attiny85 Mailbox TX
#include <Manchester.h>
/*
You've Got Snail Mail by dwhacks: http://daynewaterlow.com
Using Arduino-Tiny core on the Attiny85
http://code.google.com/p/arduino-tiny/
Notifier Code borrowed from: https://github.com/LowPowerLab/MailboxNotifier
Manchester library for Arduino from: http://mchr3k.github.io/arduino-libs-manchester/
@dwhacks
dwhacks / gist:8499803
Created January 19, 2014 02:45
cgminer
-I 15 -g 1 -w 128 --thread-concurrency 6400
@dwhacks
dwhacks / gist:8553072
Last active January 4, 2016 02:09
fade
/*Fade Up*/
for(byte i=1; i<100; i++) {
byte on = i;
byte off = 100-on;
for( byte a=0; a<100; a++ ) {
digitalWrite(led, HIGH);
delayMicroseconds(on);
digitalWrite(led, LOW);
delayMicroseconds(off);
}
int redPin = 1;
int greenPin = 4;
int bluePin = 0;
void setup()
{
pinMode(redPin, OUTPUT);
pinMode(greenPin, OUTPUT);
pinMode(bluePin, OUTPUT);
}
@dwhacks
dwhacks / BlocDrop.ino
Created January 24, 2014 18:21
blocdrop
/*
BLOC DROP: A strangely familiar falling block game
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by David Randall Stokes (gamby@logicalzero.com) 9/05/2012
THIS IS STILL A WORK-IN-PROGRESS. The game is playable, but
the scoring doesn't work correctly.
*/
@dwhacks
dwhacks / BlocDrop.ino
Created January 25, 2014 00:50
fixedblocdrop
/*
BLOC DROP: A strangely familiar falling block game
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by David Randall Stokes (gamby@logicalzero.com) 9/05/2012
THIS IS STILL A WORK-IN-PROGRESS. The game is playable, but
the scoring doesn't work correctly.
*/
@dwhacks
dwhacks / BlocDrop_v01.ino
Last active January 4, 2016 12:09
Progress on gamby blocdrop
/*
BLOC DROP: A strangely familiar falling block game
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
by David Randall Stokes (gamby@logicalzero.com) 9/05/2012
THIS IS STILL A WORK-IN-PROGRESS. The game is playable, but
the scoring doesn't work correctly.
*/