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
D/dalvikvm(21135): GC freed 6154 objects / 390440 bytes in 99ms | |
I/ActivityManager( 1191): Starting activity: Intent { cmp=cgeo.geocaching/.CacheDetailActivity (has extras) } | |
E/Position(20851): Unknown network type, aborting | |
D/dalvikvm(21135): GC freed 13080 objects / 834816 bytes in 118ms | |
E/SkLayout_wtle(21135): failed to compose after ellipsize error:106 | |
E/SkLayout_wtle(21135): ellipsis failed line number does not match 1 0 | |
E/SkLayout_wtle(21135): failed to compose after ellipsize error:106 | |
E/SkLayout_wtle(21135): ellipsis failed line number does not match 1 0 | |
E/SkLayout_wtle(21135): failed to compose after ellipsize error:106 | |
E/SkLayout_wtle(21135): ellipsis failed line number does not match 1 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
#include <stdio.h> | |
#include <string.h> | |
#define MEM_CENTER_COLOR (char *)0xd021 | |
#define MEM_BORDER_COLOR (char *)0xd020 | |
void set_background(char center_color, char border_color) | |
{ | |
char *border, *center; | |
border = MEM_CENTER_COLOR; |
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 sys | |
from PIL import Image | |
def mouth_display_png(image_absolute_path, threshold=70, | |
invert=False, x=0, y=0): | |
"""Converts a png image into the appropriate encoding for the | |
Arduino Mark I enclosure. | |
NOTE: extract this out of api.py when re structuing the | |
enclosure folder |
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
#! /usr/bin/env python | |
import sys | |
from websocket import create_connection | |
uri = 'ws://' + sys.argv[1] + ':8181/core' | |
ws = create_connection(uri) | |
print "Sending " + sys.argv[2] + " to " + uri + "..." | |
if len(sys.argv) >= 4: | |
data = sys.argv[3] | |
else: |
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
from mycroft.skills.core import MycroftSkill | |
from mycroft.messagebus.client.ws import WebsocketClient | |
import sys | |
import gc | |
class TestSkill(MycroftSkill): | |
def __init__(self): | |
super(TestSkill, self).__init__() | |
self._dir = './' |
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
sudo apt-get install -y git gcc make pkg-config automake libtool libasound2-dev unzip |
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
#!/usr/bin/env bash | |
sudo apt-get update | |
sudo apt-get install apt-transport-https -y | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F3B1AA8B | |
sudo bash -c 'echo "deb http://repo.mycroft.ai/repos/apt/debian debian main" > /etc/apt/sources.list.d/repo.mycroft.ai.list' | |
sudo apt-get update | |
sudo apt-get install mycroft-core -y | |
# Vim for the people! | |
sudo apt-get install vim -y |
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
from zeroconf import ServiceBrowser, Zeroconf | |
class MycroftListener(object): | |
def __init__(self): | |
self.devices = {} | |
def remove_service(self, zeroconf, type, name): | |
print("Service %s removed" % (name,)) | |
self.devices.pop(name) |
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
from adapt.intent import IntentBuilder | |
from adapt.engine import IntentDeterminationEngine | |
def check_for_location(intent): | |
if 'Location' in intent: | |
print('Location: {}'.format(intent['Location'])) | |
else: | |
print('Location: Not found') |
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
from adapt.intent import IntentBuilder | |
from adapt.engine import IntentDeterminationEngine | |
def check_for_location(intent): | |
if 'Location' in intent: | |
print('Location: {}'.format(intent['Location'])) | |
else: | |
print('Location: Not found') | |
OlderNewer