I hereby claim:
- I am m25lazi on github.
- I am m25lazi (https://keybase.io/m25lazi) on keybase.
- I have a public key ASBXJ0Ym5z7ej1MlruGNMGncqXHyjm-mVtZ328UxyJC1xQo
To claim this, I am signing this object:
network={ | |
ssid="Your WiFi SSID" | |
psk="Correct Password for the same" | |
} |
I hereby claim:
To claim this, I am signing this object:
extension UIImage { | |
func buffer() -> CVPixelBuffer? { | |
return UIImage.buffer(from: self) | |
} | |
static func buffer(from image: UIImage) -> CVPixelBuffer? { | |
// as explained in https://www.hackingwithswift.com/whats-new-in-ios-11 | |
// ... | |
} | |
/** | |
Make a prediction using the convenience interface | |
- parameters: | |
- image: Input image to be classified as RGB image buffer, 299 pixels wide by 299 pixels high | |
- throws: an NSError object that describes the problem | |
- returns: the result of the prediction as Inceptionv3Output | |
*/ | |
func prediction(image: CVPixelBuffer) throws -> Inceptionv3Output { | |
let input_ = Inceptionv3Input(image: image) | |
return try self.prediction(input: input_) |
var model = Inceptionv3() | |
let output = try? model.prediction(image: pixelBuffer) | |
let prediction = output?.classLabel ?? “I don’t know! 😞” |
// Taken from Addy Osmani's Essential JS Design Patterns | |
// https://addyosmani.com/resources/essentialjsdesignpatterns/book/#constructorpatternjavascript | |
var myNamespace = (function () { | |
var myPrivateVar, myPrivateMethod; | |
// A private counter variable | |
myPrivateVar = 0; | |
// A private function which logs any arguments |
<key>LSApplicationQueriesSchemes</key> | |
<array> | |
<string>fb</string> | |
<string>googlechrome</string> | |
<string>googlechromes</string> | |
</array> |
xcrun simctl install booted <Path to .app> |
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
/* | |
Should include these additional libraries: | |
* Ethernet | |
* SPI | |
* ArduinoJson by bblanchon (https://github.com/bblanchon/ArduinoJson) | |
Bloq Library includes Arduino-RestClient Library by csquared (https://github.com/csquared/arduino-restclient) | |
Device Type - 0 : Appliance, 1 : Sensor | |
Data Type - 0 : Digital, 1 : Analog |