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
#!/bin/bash | |
if [ ${#@} -gt 1 ]; then | |
TITLE="$1" | |
BODY="${@:2}" | |
else | |
TITLE="" | |
BODY="$@" | |
fi | |
token="$(cat ~/.pushtoken)" | |
curl \ |
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
mew cat soft |
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 os | |
os.environ["POST"] = 'this is some data here yes probably long and all that meow soft mew' | |
os.environ["MOST"] = "mew mew mew mew mew commit message" | |
os.system("./testenv.sh") |
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
glyphs = { | |
"0": 0b11111100, | |
"1": 0b01100000, | |
"2": 0b11011010, | |
"3": 0b11110010, | |
"4": 0b01100110, | |
"5": 0b10110110, | |
"6": 0b10111110, | |
"7": 0b11100000, | |
"8": 0b11111110, |
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
class RingBuffer: | |
full = False | |
readpos = 0 | |
writepos = 0 | |
def __init__(self, size=8): | |
self.size = size | |
self.buf = [0] * size | |
def take(self): | |
if self.readpos == self.writepos: | |
if self.full: |
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
// Settings | |
//#define DEBUG | |
#define MAXSTR 128 | |
// Morse logic | |
class RingBuffer { | |
private: | |
size_t size; | |
unsigned char readpos; |
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
struct PBS { | |
bool D8 : 1; | |
bool D9 : 1; | |
bool D10 : 1; | |
bool D11 : 1; | |
bool D12 : 1; | |
bool D13 : 1; | |
bool DONOTUSE1 : 1; | |
bool DONOTUSE2 : 1; |
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 BUZ 3 | |
#define KNB A0 | |
#define BT1 A1 | |
#define BT2 A2 | |
#define BT3 A3 | |
#define LD1 10 | |
#define LD2 11 | |
#define LD3 12 | |
#define LD4 13 | |
#define DAT 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
uint8_t state = 0, s = 0; | |
uint8_t pin[] = { A4, A5, 2 }; | |
void setup() { | |
} | |
void loop() { | |
for (int i = 0; i < sizeof(pin); i++) { | |
s = (state & (3 << (2 * i))) >> (2 * i); | |
if (s == 2) { |
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
<?php | |
header('Access-Control-Allow-Origin: *'); | |
header('Content-Type: text/html; charset=utf8'); | |
?> | |
<html> | |
<body> | |
<head> | |
<title>Smol</title> | |
<style> | |
html {background-color: #000000; color: #ffffff;} |
NewerOlder