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
// connections to DRV8833 | |
int AIN1pin = 9; | |
int AIN2pin = 10; | |
int BIN1pin = 14; | |
int BIN2pin = 15; | |
#define motorA 1 | |
#define motorB 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
int motorspeedA; | |
int motorspeedB; | |
// connections to DRV8833 | |
int AIN1pin = 9; | |
int AIN2pin = 10; | |
int BIN1pin = 14; | |
int BIN2pin = 15; |
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 | |
while true; do | |
read -n 1 key | |
case "$key" in | |
w) | |
echo 'F' > /dev/ttyACM0 | |
;; | |
# s) | |
# echo 'B' > /dev/ttyACM0 |
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
USB=ACM0; FILE=$(mktemp -u -t $USB_XXXXXXXXXX); mkfifo $FILE; stty -F /dev/tty$USB cs8 115200; tail -f $FILE > /dev/tty$USB & |
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
import time | |
import btdht | |
import binascii | |
import random | |
dht = btdht.DHT() | |
dht.start() | |
time.sleep(15) |
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/perl | |
use warnings; | |
use Net::BitTorrent::File; | |
$directory = "./yts.am_26.01.2019/yts.am_torrents_26.01.2019"; | |
#$directory = "./mac-torrents.com_23.01.2019/torrents"; | |
$directory = "./eztv.io_27.01.2019/eztv.io_torrents_27.01.2019"; | |
$directory = "./nostalgic.is_19.12.2019/nostalgic.is_public_torrents/"; |
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
import feedparser | |
import random | |
NewsFeed = feedparser.parse("https://speld.nl/feed/") | |
numberofentries = len(NewsFeed.entries) | |
pickedentry = random.randint(0,numberofentries-1) | |
entry = NewsFeed.entries[pickedentry]; | |
print entry.title |
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 <math.h> | |
#define PI 3.1415926 | |
#define ZENITH -.83 | |
#include <NTPClient.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiUdp.h> | |
#include <TimeLib.h> | |
const char *ssid = "xxx"; |
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
[[inputs.http]] | |
urls = [ "https://idlerpg.lolhosting.net/xml.php?player=buZz" ] | |
data_format = "xml" | |
[[inputs.http.xml]] | |
[inputs.http.xml.tags] | |
username = "/player/username" | |
[inputs.http.xml.fields_int] | |
level = "/player/level" |
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
// hook for 'keyhole' metal shelving units | |
// single 'keyhole' grabbed, just for hanging baseball caps | |
// buZz 2021 | |
difference() { | |
linear_extrude(6) { | |
translate([-1,0,0]) square([3,10]); | |
translate([3,0,0]) square([3,10]); | |
translate([-1,-1,0]) square([7,3]); | |
translate([5.5,11,0]) rotate(-90-50) square([3,25]); |