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 Keyboard Hello World, Goodbye Zoom! | |
MakerHacks.com 12/2020 | |
*********************************************/ | |
// The library that does the magicx | |
#include "Keyboard.h" | |
// Right now our "keyboard" has one key | |
#define KEY_PIN 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
program MainProgram; | |
/* | |
Vic 20 8K Vic Bitmap Mode template | |
- can utilize up to 35K RAM under project settings | |
------------------- | |
Dev Note: Zero Page addresses have been defined in project settings | |
for the Vic 20 build. |
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
''' | |
Send '*' to Arduino + HC-08 BLE module | |
- Service UUID 'FFE1' | |
- Characteristics UUID 'FFE0' | |
''' | |
# Core Bluetooth module |
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
//Arduino stepper library | |
#include <Stepper.h> | |
// different steppers have different | |
// amount of steps to do a full | |
// turn of the wheel. | |
#define STEPS 32 | |
// connections need to be done carefully |
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 sys | |
import nmap | |
import time | |
nm = nmap.PortScanner() | |
nm.scan('10.0.1.0/24', '22') | |
# clear screen | |
sys.stdout.write(u"\u001b[2J\u001b[0;0H") | |
sys.stdout.flush() | |
time.sleep(0.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
import sys | |
import nmap | |
import time | |
nm = nmap.PortScanner() | |
nm.scan('10.0.1.0/24', '22') | |
# clear screen | |
sys.stdout.write(u"\u001b[2J\u001b[0;0H") | |
sys.stdout.flush() | |
time.sleep(0.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
import time | |
import RPi.GPIO as GPIO | |
# We are going to use the BCM numbering | |
GPIO.setmode(GPIO.BCM) | |
# Set pin 26 as input using pull up resistor | |
GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) | |
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 os | |
from solid import * | |
from PIL import Image | |
def assembly(annotation=""): | |
a = import_stl("base.stl") + translate([5, -37, 10])( | |
linear_extrude(height=2, convexity=4)( | |
text(annotation, |
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 photos | |
import webbrowser | |
picked = photos.pick_asset() | |
print(dir(picked)) | |
geo_loc = picked.location | |
lat = geo_loc['latitude'] | |
long = geo_loc['longitude'] | |
map_url = "comgooglemaps://www.google.com/maps/?q={},{}".format(lat,long) | |
print(map_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
import os | |
import discord | |
# discord client | |
client = discord.Client() | |
def process_message(message): | |
args = message.content.split(" ") |
NewerOlder