Skip to content

Instantly share code, notes, and snippets.

View matthewtole's full-sized avatar

Matthew Tole matthewtole

View GitHub Profile
@matthewtole
matthewtole / clock-layer.c
Last active December 29, 2015 16:39
Clock Layer - A layer class for display the time and date in Pebble apps.
/***
* Clock Layer
* Copyright © 2013 Matthew Tole
***/
#include <pebble.h>
#include "clock-layer.h"
struct ClockLayer {
TextLayer* text_layer;
@matthewtole
matthewtole / bitmap-loader.c
Last active April 21, 2016 01:23
Bitmap Loader
/***
* Bitmap Loader
* Copyright © 2013 Matthew Tole
*
* Version 2.0.2
***/
#include <pebble.h>
#include "bitmap-loader.h"
/***
* Message Queue
* Copyright © 2013 Matthew Tole
*
* Version 1.0.0
***/
#include <pebble.h>
#include "message-queue.h"
@matthewtole
matthewtole / font-loader.c
Last active December 30, 2015 09:49
Font Loader
/***
* Font Loader
* Copyright © 2013 Matthew Tole
*
* 1.0.0
***/
#include <pebble.h>
#include "font-loader.h"
/***
* Data Processor
* Copyright © 2014 Matthew Tole
***/
#include <pebble.h>
#include "data-processor.h"
static char* data_start = NULL;
static char* data_pos = NULL;
#include <pebble.h>
#include "scroll-text-layer.h"
#define MAX_HEIGHT 2000
#define PADDING_X 4
#define PADDING_Y 4
struct ScrollTextLayer {
TextLayer* text_layer;
ScrollLayer* scroll_layer;
@matthewtole
matthewtole / wscript
Last active August 29, 2015 13:56
wscript build configuration for Hearts.
import json
import os
from sh import karma
from sh import uglifyjs
from sh import jshint
top = '.'
out = 'build'
def options(ctx):
@matthewtole
matthewtole / gcolor.js
Created February 26, 2015 23:39
GColor utilities for PebbleKit JS
/*
GColor
A small utility library for dealing with GColor in the new PebbleSDK.
----------------------
The MIT License (MIT)
Copyright © 2015 Matthew Tole
Permission is hereby granted, free of charge, to any person obtaining a copy