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
# iCE40HX8K-B-EVN | |
set_io clk J3 | |
set_io tx B12 |
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
lcall _delay_4c | |
sjmp . | |
_delay_4c:: | |
; (ljmp delay_4c) ; 0c > 4c | |
mov acc, dph ; 3c | |
cjne a, #0, 00000$ ; 4c > 11c [A] | |
mov acc, dpl ; 3c | |
subb a, #(24/4+1) ; 2c | |
inc a ; 1c |
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
""" | |
The ``interface`` taxon is the most fundamental and generic applet taxon. It groups applets | |
implementing interfaces that are used for purposes that do not fit into any single other taxon. | |
Because the ``interface`` taxon is so important, the applet names in this taxon are not prefixed | |
with the taxon name. | |
The ``memory`` taxon groups applets implementing interfaces to memory technology devices (volatile | |
and non-volatile) that include no functionality beyond manipulating 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
# Macronix 25L6473E | |
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify | |
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6 | |
I: glasgow.cli: running handler for applet 'spi-flash-25c' | |
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V | |
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xc2 (Macronix) device 0x2017 | |
I: glasgow.applet.spi_flash_25c: device has valid SFDP 1.0 (JESD216) descriptor | |
I: glasgow.applet.spi_flash_25c: SFDP table #0: JEDEC, Flash Parameter Table 1.0 (JESD216) | |
I: glasgow.applet.spi_flash_25c: density (Mbits) : 64 | |
I: glasgow.applet.spi_flash_25c: density (Mbytes) : 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
GAS DISCHARGE CHARACTER SYNTHESIZING GRAPHICAL INDICATOR | |
ИГГ1-64x64M | |
PASSPORT | |
-2- | |
ОКП 6349580385 | |
PASSPORT | |
1. GENERAL INFORMATION |
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 <GL/gl.h> | |
#include <GL/glx.h> | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
Display *dpy = XOpenDisplay(NULL); | |
if(!dpy) { | |
puts("cannot XOpenDisplay"); | |
return 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
1. install postgres | |
2. run makedb.rb >tiles.csv | |
3. run tiles.sql | |
4. run archive.rb | |
5. enjoy |
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
// by whitequark. released under CC0. | |
(function() { | |
function downloadFile(fileName, content) { | |
var dataURI = 'data:text/plain;charset=UTF-8,' + | |
encodeURIComponent(content); | |
var fakeLink = document.createElement('a'); | |
fakeLink.setAttribute('href', dataURI); | |
fakeLink.setAttribute('download', fileName); |
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 ruby | |
# License: BSD-0-clause | |
VIDEO_EXTS = %w(.mkv .avi .mp4) | |
SUBTITLE_EXTS = %w(.ssa .ass .srt) | |
if ARGV.empty? | |
puts "Automatic subtitle file renamer by whitequark@whitequark.org" | |
puts "Usage: #{$0} *.ssa *.mkv" | |
puts " or: DRY_RUN=1 #{$0} *.ssa *.mkv" |
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
module LedBlink ( | |
input clk_12mhz, | |
output [7:0] leds | |
); | |
reg [23:0] counter; | |
always @(posedge clk_12mhz) | |
counter <= counter - 1; | |
assign leds = { counter[23], 7'b0 }; |