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 io | |
f = io.open('main.py', 'w') | |
f.write(''' | |
import hub | |
import time | |
while True: | |
hub.display.show(hub.Image('00000:00000:00900:00000:00000:')) | |
time.sleep_ms(500) |
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
// | |
// BLEPeripheral.swift | |
// BLEPeripheral | |
// | |
// Created by ooba on 26/07/2017. | |
// Copyright © 2017 bricklife.com. All rights reserved. | |
// | |
import Foundation | |
import CoreBluetooth |
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
// | |
// LineHeightLabel.swift | |
// LineHeightLabel | |
// | |
// Created by Shinichiro Oba on 20/06/2018. | |
// Copyright © 2018 bricklife.com. All rights reserved. | |
// | |
import UIKit |
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
// | |
// ViewController.swift | |
// PanOnScroll | |
// | |
// Created by Shinichiro Oba on 2018/03/08. | |
// Copyright © 2018 bricklife.com. All rights reserved. | |
// | |
import UIKit |
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
// | |
// CollectionViewController.swift | |
// CollectionViewTouch | |
// | |
// Created by ooba on 30/01/2018. | |
// Copyright © 2018 ooba. All rights reserved. | |
// | |
import UIKit |
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 Foundation | |
import JSONRPCKit | |
struct CastError<ExpectedType>: Error { | |
let actualValue: Any | |
let expectedType: ExpectedType.Type | |
} | |
struct Subtract: JSONRPCKit.Request { | |
typealias Response = Int |
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
[uk-mercariapp://search/openSearch](test) |
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
//: A SpriteKit based Playground | |
import PlaygroundSupport | |
import SpriteKit | |
class SliderNode: SKNode { | |
private let height: CGFloat | |
private let width: CGFloat | |
private var baseNode: SKNode |
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
//: A SpriteKit based Playground | |
import PlaygroundSupport | |
import SpriteKit | |
class JoystickNode: SKNode { | |
private let radius: CGFloat | |
private var baseNode: SKNode | |
private var stickNode: SKNode |
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
//: A UIKit based Playground for presenting user interface | |
import UIKit | |
import CoreBluetooth | |
import PlaygroundBluetooth | |
import PlaygroundSupport | |
private let serviceUuid = CBUUID(string: "180F") | |
private let characteristicUuid = CBUUID(string: "2A19") |