Skip to content

Instantly share code, notes, and snippets.

@stefanbraun-private
stefanbraun-private / Datacake - monitoring LoRaWAN GPS tracker.js
Created April 27, 2024 07:13
Datacake - monitoring LoRaWAN GPS tracker - payload decoder extracts JSON values into Datacake fields
// based on example from https://docs.datacake.de/integrations/webhook
// and https://docs.datacake.de/lorawan/payload-decoders/location-and-gps
// and https://docs.datacake.de/lorawan/converting-payload
//
// ==>webhook from Helium provides already the decoded JSON data!
function Decoder(bytes, port) {
// Extract Serial for Routing into Device
var device = rawPayload.dev_eui;
@documentprocessing
documentprocessing / extract-tables-from-pdf-pdf2docx.py
Created April 27, 2024 07:12
Extract tables from PDF file using pdf2docx API
from pdf2docx import Converter
pdf_file = '/path/to/sample.pdf'
cv = Converter(pdf_file)
tables = cv.extract_tables(start=0, end=1)
cv.close()
for table in tables:
print(table)
@yeiichi
yeiichi / country_region_200_ja.json
Created April 27, 2024 07:11
Country name -> Region name, Japanese version. c.f. mofa-j
{
"アイスランド": "欧州",
"アイルランド": "欧州",
"アゼルバイジャン": "欧州",
"アフガニスタン": "中東",
"アラブ首長国連邦": "中東",
"アルジェリア": "アフリカ",
"アルゼンチン": "中南米",
"アルバニア": "欧州",
"アルメニア": "欧州",
@Rohitbels
Rohitbels / Increase Chrome Volume
Created April 27, 2024 07:11
Increase Chrome Volume beyond 100%
(function() {
if (window["_gainNode"]) {
window["_gainNode"].gain.value = parseFloat(prompt('Set the playback rate'));
return;
}
var v = document.querySelector('video');
var audioCtx = new AudioContext();
var source = audioCtx.createMediaElementSource(v);
var gainNode = audioCtx.createGain();
gainNode.gain.value = parseFloat(prompt('Set the audio gain'));
@atsuyaw
atsuyaw / 240427ChemLabel.pdf
Last active April 27, 2024 07:40
試薬ラベル Label for chemical substance
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ThaddeusJiang
ThaddeusJiang / README.md
Created April 27, 2024 07:10
TiddlyWiki WikiText Macros

TiddlyWiki WikiText Macros

  • \define
  • $parameter-name$
import bw2data as bd
db = bd.Database("Transport routes")
# Compatible with legacy - "new_node" is 2.5 only
my_route = bd.new_activity(
name="Transport from CN to EU",
unit="trip",
code="surf-practice"
)
my_route.save()
@MrWhiteD
MrWhiteD / var.php
Created April 27, 2024 07:09
[Переменные в компоненте 2.0] #переменные
https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=43&LESSON_ID=2499
@DavidLee18
DavidLee18 / splitArray.hs
Created April 27, 2024 07:09
Split Array into odds and even ones
main :: IO ()
main = print $ splitArray [1, 2, 3, 7, 2, 4, 5]
splitArray :: [Int] -> ([Int], [Int])
splitArray [] = ([], [])
splitArray (x:xs) | even x = (x:evens, odds)
| otherwise = (evens, x:odds)
where (evens, odds) = splitArray xs
2024-04-27 12:05:50.425 5203-5364 Unity flexus.dye.hard E A scripted object (probably EditorInventoryLootSpawn?) has a different serialization layout when loading. (Read 32 bytes but expected 72 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
2024-04-27 12:05:50.468 5203-5364 Unity flexus.dye.hard W The referenced script on this Behaviour (Game Object 'Slots') is missing!
2024-04-27 12:05:50.468 5203-5364 Unity flexus.dye.hard E A scripted object (probably EditorInventoryLootSpawn?) has a different serialization layout when loading. (Read 32 bytes but expected 72 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in