Skip to content

Instantly share code, notes, and snippets.

#include "ssd1306.h"
#include "nano_engine.h"
NanoEngine1 engine;
const unsigned char news_bitmap [] PROGMEM = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, 0xf3,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x7f, 0x1f, 0x7f, 0xff,
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf7, 0xe3, 0xf7, 0xff, 0xff, 0xff, 0xff, 0xff,
0xfe, 0xff, 0xff, 0xff, 0xef, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xfd, 0xff,
#!/bin/bash
input=$1
if [ ! -f "$input" ]; then
echo "Usage: ./label-burn.sh path/labels.txt"
exit
fi
output=${input%.txt}.bin
#!/bin/bash
input=$1
if [ ! -f "$input" ]; then
echo "Usage: ./burn.sh path/input.hex"
exit
fi
output=${input%.hex}.bin
@mstratman
mstratman / test1.html
Created November 2, 2012 13:24
Trying to reproduce smartwizard+tabs problem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Smart Wizard 3 - Basic Example - a javascript jQuery wizard control plugin</title>
<link href="http://mstratman.github.com/jQuery-Smart-Wizard/styles/demo_style.css" rel="stylesheet" type="text/css">
<link href="http://mstratman.github.com/jQuery-Smart-Wizard/styles/smart_wizard.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.js"></script>
<script type="text/javascript" src="http://mstratman.github.com/jQuery-Smart-Wizard/js/jquery.smartWizard.js"></script>
package MooParent;
use Moo;
has who => (
is => 'ro',
default => sub { 'MooParent' },
);
1;
# NOTE: This is simply an example of a legacy array-based object.
# I do not recommend using it.
package Animal3;
use strict;
our $NAME_INDEX = 0;
sub new {
my $class = shift;
my $self = [];
# NOTE: This is simply an example of a legacy blessed-hash object.
# I do not recommend using it.
package Animal2;
use strict;
sub new {
my $class = shift;
my $self = {};
$self->{_name} = shift;
bless($self, $class);
# NOTE: This is simply an example of a legacy blessed-hash object.
# I do not recommend using it.
package Animal1;
use strict;
sub new {
my $class = shift;
my $self = shift;
$self = {} unless $self && ref $self eq 'HASH';
bless($self, $class);
package MyDate;
use Moose;
use namespace::autoclean;
use Date::Handler;
has '_date_handler' => (
is => 'ro',
isa => 'Date::Handler',
handles => qr/.*/,
);
# NOTE: This is simply an example of a legacy blessed-hash object.
# I do not recommend using it.
package Animal2;
use strict;
sub new {
my $class = shift;
my $self = {};
$self->{_name} = shift;
bless($self, $class);