Skip to content

Instantly share code, notes, and snippets.

View Katharine's full-sized avatar

Katharine Berry Katharine

View GitHub Profile
@Katharine
Katharine / hello.c
Created April 3, 2014 21:07
Hello world!
#include <pebble.h>
Window *window;
TextLayer *text_layer;
void handle_init(void) {
// Create a window and text layer
window = window_create();
text_layer = text_layer_create(GRect(0, 0, 144, 154));
[Error] ReferenceError: Can't find variable: mixpanel
(anonymous function) (www.treasuredata.com, line 1)
[Error] [object Object]
error (gtm.js, line 49)
onerror (gtm.js, line 49)
replaceChild
Ca (gtm.js, line 47)
Ha (gtm.js, line 47)
Aa (gtm.js, line 46)
aa (gtm.js, line 44)
"abort",
"atexit",
"exit",
"system",
"getenv",
"labs",
"div",
"llabs",
"bsearch",
"qsort",

Keybase proof

I hereby claim:

  • I am Katharine on github.
  • I am katharine (https://keybase.io/katharine) on keybase.
  • I have a public key whose fingerprint is 7364 6C3F BC91 CCB7 432A 56E8 177A EFA4 6EDA 4EB3

To claim this, I am signing this object:

import math
from array import array
class ZStatement(object):
def __init__(self, label=None, opcode=None, operands=None, store=False, branch=False):
super(ZStatement, self).__init__()
self.label = label
self.opcode = opcode
self.operands = operands
self.store = store
In [1]: pixels = []
In [2]: colours = (0, 85, 170, 255)
In [3]: for r in colours:
...: for g in colours:
...: for b in colours:
...: pixels.append((r, g, b))
...:
require 'curses'
class PebbleSdk < Formula
class Version < ::Version
def <=> (other)
mine = ::Version.new(self.to_s.sub('dp', 'alpha'))
other = ::Version.new(other.to_s.sub('dp', 'alpha'))
mine <=> other
end
end
#!/usr/bin/env python
import zipfile
import os
import argparse
import logging
def copy_zip_file(filename, zip_from, zip_to):
logging.info("Copying (%s --> %s): %s ", zip_from.filename, zip_to.filename, filename)
zip_to.writestr(filename, zip_from.read(filename))

Keybase proof

I hereby claim:

  • I am katharine on github.
  • I am katharine (https://keybase.io/katharine) on keybase.
  • I have a public key whose fingerprint is DBED 4671 E2A2 0E19 3F0D BCB4 EB4B B34C F4DB EC44

To claim this, I am signing this object:

@Katharine
Katharine / appinfo.json
Last active November 20, 2015 21:53
Pebble Tutorial Part 1 - 3
{
"uuid": "ed70b15c-3c48-4828-8e8c-e39a28efb38d",
"shortName": "Tutorial-1-3",
"longName": "Tutorial-1-3",
"companyName": "Pebble",
"versionCode": 1,
"versionLabel": "1.0",
"watchapp": {
"watchface": true
},