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`. |
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
#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
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
#!/usr/bin/env python3 | |
import requests | |
import re | |
from bs4 import BeautifulSoup | |
UA = "Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0" | |
USERNAME = "usernameHere" | |
PASSWORD = "passwordHere" | |
ROOT = "https://titanconquest.com/" | |
WORKER = f"{ROOT}worker.php" |
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
(ql:quickload :drakma) | |
(ql:quickload :cl-json) | |
(ql:quickload :plump) | |
(ql:quickload :babel) | |
(ql:quickload :tooter) | |
(ql:quickload :split-sequence) | |
(defvar *feed-path* "https://lobste.rs/rss") | |
(setf drakma:*drakma-default-external-format* :UTF-8) |
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
#!/usr/bin/env python3 | |
import socket | |
import threading | |
import random | |
import time | |
class EvadereSocket: | |
def __init__(self): | |
self.conn = None | |
self.last_activity = time.time() |
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
#!/usr/bin/python3 | |
import matplotlib.pyplot as plt | |
import datetime | |
def get_stats(filename): | |
data = {} | |
with open(filename) as todofile: | |
for line in todofile: | |
date = line.split()[1] | |
if date in data: |
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
package main | |
import( | |
"bufio" | |
"fmt" | |
"os" | |
"log" | |
"strings" | |
"net/url" | |
) |
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
[package] | |
name = "rust-async-qotd" | |
version = "0.1.0" | |
authors = ["Gökberk Yaltıraklı <[email protected]>"] | |
[dependencies] | |
tokio = { git = "https://github.com/tokio-rs/tokio" } | |
rand = "0.3" |
NewerOlder