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 | |
wget https://nerdyteachers.com/PICO-8/Games/Top200/?d=list -O top200.html | |
grep bbs top200.html | grep pid | fgrep '/a' | cut -d\" -f6 > urls.txt | |
grep bbs top200.html | grep pid | fgrep '/a' | cut -d\> -f2 | cut -d\< -f1 > titles.txt | |
tr -d "\!.':" < titles.txt | tr " " "_" | sed 's/$/.html/' > fnames.txt | |
exec 6<"fnames.txt" | |
exec 7<"urls.txt" | |
while read -r url <&7 | |
do |
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 python | |
from smbus import SMBus | |
def byte(addr): | |
return bus.read_byte_data(0x39, addr) | |
def bit(addr, n): | |
d = bus.read_byte_data(0x39, addr) | |
return (d >> n) & 0x1 |
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
/**************************************************************************** | |
* Copyright (c) 2009 by Michael Fischer. All rights reserved. | |
* Copyright (c) 2022 by Hans Baier | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. |
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
#NET "clk" LOC = U24; | |
#NET "clk" IOSTANDARD = LVCMOS25; | |
#set_property SLEW FAST [get_ports {clk}] | |
set_property IOSTANDARD LVCMOS25 [get_ports clk] | |
set_property PACKAGE_PIN U24 [get_ports clk] | |
#NET "led" LOC = A27; | |
#NET "led" IOSTANDARD = LVCMOS15; |
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 sys | |
import usb.core | |
import usb.util | |
from time import sleep | |
# find our device | |
dev = usb.core.find(idVendor=0x4348, idProduct=0x55e0) | |
if not dev: | |
print("Could not find device!") |
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 | |
# from the python-constraint package | |
import constraint | |
from pprint import pprint | |
# All frequencies in MHz | |
platform = 'xilinx-mmcm' | |
fin = 50 | |
fout = 12.288 |