Skip to content

Instantly share code, notes, and snippets.

View YamadaKyohei's full-sized avatar

Kyohei Yamada YamadaKyohei

View GitHub Profile
@YamadaKyohei
YamadaKyohei / fizzbuzz.cob
Last active April 22, 2021 01:26
Fizz Buzz in COBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. FIZZ-BUZZ.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 X PIC 99.
01 DIV PIC 99.
01 REM-3 PIC 9.
01 REM-5 PIC 9.
PROCEDURE DIVISION.
MOVE 0 TO X.
@YamadaKyohei
YamadaKyohei / ContactTracingAppFinder.ino
Last active August 13, 2020 12:16 — forked from ksasao/ContactTracingAppFinder.ino
@ksasaoさんのスケッチをM5StickC用に変更したもの。付近のCOCOAユーザ数をLCDに表示します。
#include <M5StickC.h>
#include <BLEDevice.h>
// Contact Tracing Bluetooth Specification (Apple/Google)
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb";
unsigned int count = 0;
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
void onResult(BLEAdvertisedDevice advertisedDevice) {