This file contains hidden or 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
interface Sample { | |
fun getSomething(listener: Observer<Something>, id: String) | |
} |
This file contains hidden or 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
/** | |
* Save all the things! | |
**/ | |
interface SaveThings { | |
fun saveFoo(foo: Foo) | |
fun saveBar(bar: Bar) | |
This file contains hidden or 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
/** | |
* Save things to storage for the Foo Feature | |
**/ | |
interface SaveFoos : SaveThings { | |
fun saveFoo(foo: Foo) | |
} |
This file contains hidden or 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 <Servo.h> | |
int feedbackPinA0 = A0; | |
int feedbackPinB0 = A1; | |
int posA0; | |
int posB0; | |
int trigPin = 11; // Trigger |
This file contains hidden or 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 RPi.GPIO as GPIO | |
from math import cos, sin, pi, floor | |
from adafruit_rplidar import RPLidar | |
from adafruit_rplidar import RPLidarException | |
import socket | |
from time import sleep | |
import time | |
import board | |
import digitalio | |
import json |
This file contains hidden or 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 <Wire.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_LIS2MDL.h> | |
Adafruit_LIS2MDL mag = Adafruit_LIS2MDL(12345); | |
float M_B[3] = { -0.713624,-22.782979, 24.966485}; //offsets | |
float M_Ainv[3][3] = |
This file contains hidden or 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 java.io.File | |
enum class RPS(private val value: Int) { | |
ROCK(1), PAPER(2), SCISSOR(3); | |
fun compete(v: RPS) : Int { | |
if (this == v) { | |
return value + DRAW | |
} | |
when (this) { |
This file contains hidden or 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 java.io.File | |
enum class RPS(private val value: Int) { | |
ROCK(1), PAPER(2), SCISSOR(3); | |
fun compete(v: RPS) : Int { | |
if (this == v) { | |
return value + DRAW | |
} | |
when (this) { |
This file contains hidden or 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 java.io.File | |
enum class RPS(private val value: Int) { | |
ROCK(1), PAPER(2), SCISSOR(3); | |
fun compete(v: RPS) : Int { | |
if (this == v) { | |
return value + DRAW | |
} | |
when (this) { |
This file contains hidden or 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
flowchart LR | |
subgraph mobileApp[Host App] | |
direction LR | |
mvvm[MVVM] | |
logging[Logging and Analytics] | |
iot[IoT] | |
end | |
OlderNewer