Skip to content

Instantly share code, notes, and snippets.

View rowend36's full-sized avatar
🎯
Focusing

Rowend Duke rowend36

🎯
Focusing
View GitHub Profile
@rowend36
rowend36 / bluetooth.py
Created August 8, 2017 17:13 — forked from tito/bluetooth.py
Bluetooth example on Android using Python / Pyjnius
'''
Bluetooth/Pyjnius example
=========================
This was used to send some bytes to an arduino via bluetooth.
The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't
tested without BLUETOOTH_ADMIN, maybe it works.)
Connect your device to your phone, via the bluetooth menu. After the
pairing is done, you'll be able to use it in the app.
@rowend36
rowend36 / websockettransport_notify.js
Created January 25, 2023 12:46
Simulate callback handling for OpenRPC websockets
var conn = this.socket.connection;
conn.send(
JSON.stringify({
jsonrpc: '2.0',
method: method,
params: params,
})
);
if (cb) {
//The notify promise does not resolve on all browsers
@rowend36
rowend36 / order.js
Created September 13, 2023 09:29
Javascript Execution Order For ES6 Classes
class Class {
static {
console.log(1)
}
static n = console.log(2)
static {
console.log(3)
}
m = console.log(7)
constructor(){