This file contains 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
def check_encode(value): | |
import json | |
return json.loads(encode(value)) == value | |
def encode(value): | |
if isinstance(value, bool): | |
if value: | |
return "true" | |
else: |
This file contains 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 <arpa/inet.h> | |
#include <poll.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> |
This file contains 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
#define _XOPEN_SOURCE 500 | |
#include <assert.h> | |
#include <dirent.h> | |
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> |
This file contains 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
// Leo's RBU time signal demodulator (2023-12-25) | |
// Copyright (C) 2023 Gokberk Yaltirakli (gkbrk.com) | |
// - https://en.wikipedia.org/wiki/RBU_(radio_station) | |
// - https://www.sigidwiki.com/wiki/RBU | |
// Tune to 66.0 kHz | |
// http://websdr.ewi.utwente.nl:8901/?tune=66.0 | |
// To compile, just `dotnet build -c Release`. To run, `dotnet run -c Release`. |
OlderNewer