Skip to content

Instantly share code, notes, and snippets.

Matthew Tole matthewtole

Block or report user

Report or block matthewtole

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
@matthewtole
matthewtole / gcolor.js
Created Feb 26, 2015
GColor utilities for PebbleKit JS
View gcolor.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
@matthewtole
matthewtole / wscript
Last active Aug 29, 2015
wscript build configuration for Hearts.
View wscript
import json
import os
from sh import karma
from sh import uglifyjs
from sh import jshint
top = '.'
out = 'build'
def options(ctx):
View scroll-text-layer.c
#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;
View data-processor.c
/***
* Data Processor
* Copyright © 2014 Matthew Tole
***/
#include <pebble.h>
#include "data-processor.h"
static char* data_start = NULL;
static char* data_pos = NULL;
View font-loader.c
/***
* Font Loader
* Copyright © 2013 Matthew Tole
*
* 1.0.0
***/
#include <pebble.h>
#include "font-loader.h"
View message-queue.c
/***
* Message Queue
* Copyright © 2013 Matthew Tole
*
* Version 1.0.0
***/
#include <pebble.h>
#include "message-queue.h"
View bitmap-loader.c
/***
* Bitmap Loader
* Copyright © 2013 Matthew Tole
*
* Version 2.0.2
***/
#include <pebble.h>
#include "bitmap-loader.h"
@matthewtole
matthewtole / clock-layer.c
Last active Dec 29, 2015
Clock Layer - A layer class for display the time and date in Pebble apps.
View clock-layer.c
/***
* Clock Layer
* Copyright © 2013 Matthew Tole
***/
#include <pebble.h>
#include "clock-layer.h"
struct ClockLayer {
TextLayer* text_layer;
@matthewtole
matthewtole / pebble-assist.h
Last active Dec 29, 2015
Pebble Assist - A collection of utility macros to make Pebble app development a bit simpler.
View pebble-assist.h
/***
* Pebble Assist
* Copyright (C) 2014 Matthew Tole
*
* Version 0.2.0
***/
/**
The MIT License (MIT)
@matthewtole
matthewtole / make.sh
Created Nov 7, 2013
Sample build script for a Pebble SDK 2.0 app using Javascript.
View make.sh
jshint js/main.js || { exit 1; }
jshint pebble/appinfo.json || { exit 1; }
uglifyjs js/libs/firebase.js js/libs/superagent.js js/main.js -o pebble/src/js/pebble-js-app.js
cd pebble
pebble clean
pebble build || { exit 1; }
rm src/js/pebble-js-app.js || { exit 1; }
if [ "$1" = "install" ]; then
pebble install --logs
fi
You can’t perform that action at this time.