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
# coding: utf-8 | |
# for iOS + Pythonista | |
import cb | |
import time | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None | |
self.toggle = 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
{"formatVersion":"1.0","tagData":{"name":"HTTP コマンド","icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAAAXNSR0IArs4c6QAAB6JJREFUeAHtWwlsVFUUvd07paDgwipLirLJJqIVEZWCJARCVRIbitAIAdIGEBG0gGBsxY1FVoU2UDarEqAQFoW2IdRQVDartKgIaMNWZF+6TvW/j+/N/3On/TPDzHtY7ktm3r333ffu++fM/f/fPzMB/2gNqClDIFBZZAqsI0AEKP4gEAFEgGIEFIenDCACFCOgODxlABGgGAHF4SkDiADFCCgOTxlABChGQHF4ygAiQDECisNTBhABihFQHJ4ygAhQjIDi8JQBRIBiBBSHpwxQTECwc/yKyiroMmCUs5l0HyBwaHsa2MJDTSuhDHjqxSSTAym+QyA6NhEthggoLStHTmTwDQLlFZVoIUQA8iCDXxEgAvwKr/XiRIA1Rn71IAL8Cq/14kSANUZ+9SAC/Aqv9eJEgDVGfvUgAvwKr/XiRIA1Rn71QM+C3Il2YNsyqGcLF67t+44Ucl0TgoOD4JedK/TDmr14HazeuBMdYm7mXGjW+H7d7ikWyjMgIAAdDzK0bNYY2WQZVs19S4T6ettuIRsFDr7R5q6shICx8YPhyK6VcDR3FQTUwECvHp1gz/oFus/IoS+4ezw+9+ve6WF9TfZXurLyCrR+UJADwgmzFqFxK4NXpyCrRWsbb9+2JUwaNbQ2F31sxSdTLX387RASEgyBgbcAPlF81mW47LVzhD1n70Ehuys46HN3xl3kN6BPT3G0Q0bPELJRaNr4Pl1lGWK3VxuH3JJ9kgHhYaGQn7UEbFrP254fCmDM23O5qp9KhGIQCrMzhDb1g2XwcfJYoXMhPrYfsBdrvV4aDxcvXzWttzUnH5ZnboMt6al8it4vWZ0FizI2mWxM2aft9d4Gkbr9+bhJcKbkIvJhhjnTx |
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
{"formatVersion":"1.0","tagData":{"name":"Wio Node GPIO","icon":"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBARXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAYKADAAQAAAABAAAAYAAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAYABgAwERAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/bAEMBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB |
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 PIL import Image, ImageDraw | |
import photos | |
from objc_util import * | |
CIImage, CIDetector = map(ObjCClass, ['CIImage', 'CIDetector']) | |
#imagebuffer = photos.capture_image() | |
imagebuffer = photos.pick_image() | |
imagebuffer.save('.temp.jpg') | |
data = NSData.dataWithContentsOfFile_('.temp.jpg') | |
ci_img = CIImage.imageWithData_(data) |
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
#!python2 | |
from PIL import Image, ImageDraw | |
import photos | |
from objc_util import * | |
CIImage, CIDetector = map(ObjCClass, ['CIImage', 'CIDetector']) | |
#imagebuffer = photos.capture_image() | |
imagebuffer = photos.pick_image() | |
imagebuffer.save('.temp.jpg') | |
data = NSData.dataWithContentsOfFile_('.temp.jpg') |
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
# coding: utf-8 | |
import photos | |
import console | |
from objc_util import * | |
CIFilter, CIImage, CIContext, CIDetector, CIVector = map(ObjCClass, ['CIFilter', 'CIImage', 'CIContext', 'CIDetector', 'CIVector']) | |
def take_photo(filename='.temp.jpg'): | |
img = photos.capture_image() |
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
10 ? CHR$(27);"[2J";:? CHR$(27);"[?25l";:WAIT 5 | |
20 FOR I = 1 TO 7 | |
30 ? CHR$(27);"[";I;";";I;"H";CHR$(27);"[3";I;"m";"IchigoJam";:WAIT 5 | |
40 NEXT | |
50 ? CHR$(27);"[30m"; | |
60 FOR I = 1 TO 7 | |
70 ? CHR$(27);"[";I+7;";";I+7;"H";CHR$(27);"[4";I;"m";"IchigoJam";:WAIT 5 | |
80 NEXT | |
90 ? CHR$(27);"[39m";CHR$(27);"[49m"; | |
100 WAIT 90:? CHR$(27);"[2J"; |
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
#!python2 | |
# coding: utf-8 | |
import cb | |
import time | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None | |
self.toggle = 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
#!python2 | |
# coding: utf-8 | |
import cb | |
import time | |
import sys | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None | |
self.ledtext = None |
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
#!python2 | |
# coding: utf-8 | |
import cb | |
def s8(value): | |
return -(value & 0b10000000) | (value & 0b01111111) | |
class MyCentralManagerDelegate (object): | |
def __init__(self): | |
self.peripheral = None |
OlderNewer