This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static Layer *popup_dialog; | |
static TextLayer *s_dialog_message; | |
static PropertyAnimation *dialog_in_animation; | |
static void drawFrame(Layer *layer, GContext *ctx) { | |
graphics_context_set_stroke_color(ctx, GColorBlack); | |
graphics_context_set_fill_color(ctx, GColorWhite); | |
graphics_draw_rect(ctx, GRect(6,15,129,72)); | |
graphics_fill_rect(ctx, GRect(7,16,127,70),0,GCornerNone); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var getLeaderboard = function() { | |
var query = "users/"+settings.uid+"/scoreboard?oauth_token="+settings.oauth+"&v=20150724&m=swarm"; | |
var xhr = new XMLHttpRequest(); | |
xhr.open('GET', config.base + query, true); | |
xhr.onload = function() { | |
if (xhr.readyState == 4) { | |
if (xhr.status == 200) { | |
var response = JSON.parse(xhr.responseText); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> Downloading https://pypi.python.org/packages/source/p/pyasn1-modules/pyasn1-modules-0.0.5.tar.gz | |
######################################################################## 100.0% | |
==> python setup.py install --prefix=/usr/local/Cellar/pebble-sdk/3.2/libexec | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1317, in get_metadata | |
return self._get(self._fn(self.egg_info,name)) | |
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1381, in _get | |
return self.loader.get_data(path) | |
zipimport.ZipImportError: bad local file header in /usr/local/Cellar/pebble-sdk/3.2/libexec/lib/python2.7/site-packages/pyasn1_modules-0.0.5-py2.7.egg | |
couldn't understand kern.osversion `14.4.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flashrom v0.9.7-unknown on Darwin 14.4.0 (x86_64) | |
flashrom was built with libpci 3.1.9, GCC 4.2.1 (Apple Inc. build 5666) (dot 3), little endian | |
Command line (6 args): /Users/travis/Downloads/Opera Downloads/DarwinDumper_v2.9.8/DarwinDumper.app/Contents/Resources/Tools/flashrom -p internal -r /Users/travis/Downloads/Opera Downloads/DarwinDumper_v2.9.8/DarwinDumperReports/000_2015-06-02_12-06-18_MacBookPro3,1/DarwinDumper_2.9.8_Apple_X64_Yos_travis/BIOS/System/biosbackup.rom -o /Users/travis/Downloads/Opera Downloads/DarwinDumper_v2.9.8/DarwinDumperReports/000_2015-06-02_12-06-18_MacBookPro3,1/DarwinDumper_2.9.8_Apple_X64_Yos_travis/BIOS/System/flashrom_log.txt | |
Calibrating delay loop... OS timer resolution is 1 usecs, 278M loops per second, delay more than 10% too short (got 35% of expected delay), recalculating... 196M loops per second, delay more than 10% too short (got 25% of expected delay), recalculating... 297M loops per second, delay more than 10% too short (got 37% of expected delay), recalculating... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var body = {message: 'Hello "\u2764\uFE0F" one two three four'}; | |
bodyjson = JSON.stringify(body); | |
request.open('POST', "http://192.168.1.30:5000/", true); | |
request.setRequestHeader('Content-Type', 'application/json'); | |
request.send(bodyjson); | |
//iOS Sends: | |
//{"message":"Hello \"❤️\" one two three fo | |
//Android Sends: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ pebble install --debug --emulator basalt | |
[WARNING ] You are not logged in with your Pebble Account and will not be able to receive remote pins in the emulator. Please run 'pebble login' to connect your Pebble account. | |
[INFO ] Starting Pebble basalt emulator... | |
[DEBUG ] Required QEMU file not found: /Users/travis/Library/Application Support/Pebble SDK/basalt/3.0-beta12/qemu/qemu_spi_flash.bin | |
[DEBUG ] Copying basalt SPI image to /Users/travis/Library/Application Support/Pebble SDK/basalt/3.0-beta12/qemu/qemu_spi_flash.bin | |
[DEBUG ] QEMU command: /usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/qemu/qemu-system-arm_Darwin_x86_64 -rtc base=localtime -s -serial file:/dev/null -serial tcp::12344,server,nowait -serial tcp::12345,server,nowait -machine pebble-snowy-bb -cpu cortex-m4 -pflash /usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/basalt/qemu/qemu_micro_flash.bin -pflash /Users/travis/Library/Application Support/Pebble SDK/basalt/3.0-beta12/qemu/qemu_spi_flash.bin -pidfile /var/folders/t8/91qstp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG ] Phone ==> Watch: 00020031ff03 | |
INFO:pypkjs.javascript.pebble:JS starting | |
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): timeline-sync.getpebble.com | |
[DEBUG ] Log: 'js: Pebble ready!' | |
[INFO ] js: Pebble ready! | |
[DEBUG ] Status: '\x00\x00\x00\x00' | |
[INFO ] Installation successful | |
[DEBUG ] Phone info: 'pypkjs,0.0.0,qemu' | |
[DEBUG ] Unexpected status message | |
/usr/local/Cellar/pebble-sdk/3.0-beta10/libexec/lib/python2.7/site-packages/requests-2.5.0-py2.7.egg/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import requests | |
import subprocess | |
import time | |
def tryHTTP(): | |
url = 'https://google.com' | |
now = datetime.datetime.now() | |
try: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"timeStamp": 1421535445748, | |
"version": "0.8.5.5", | |
"userSettings": { | |
"advancedUserEnabled": false, | |
"autoUpdate": true, | |
"collapseBlocked": false, | |
"contextMenuEnabled": true, | |
"dynamicFilteringString": "", | |
"dynamicFilteringEnabled": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Opera [19819] | |
Path: /Applications/Opera Beta.app/Contents/MacOS/Opera | |
Identifier: com.operasoftware.OperaNext | |
Version: 25.0 (25.0.1614.35) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Opera [19819] | |
User ID: 501 | |
Date/Time: 2014-10-13 11:31:43.361 -0400 |