Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Damien Guard damieng

🏠
Working from home
View GitHub Profile
@damieng
damieng / EGA_64.pal
Created Feb 18, 2021
EGA 64-color palette in JASC format for Pixatool
View EGA_64.pal
JASC-PAL
0100
256
0 0 0
0 0 85
85 0 0
85 0 85
0 85 0
0 85 85
85 85 0
@damieng
damieng / streport-metadata.cs
Created Feb 2, 2021
Throwaway script that created all the necessary metadata for uploading ST Report to archive.org
View streport-metadata.cs
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace ConsoleApp8
{
class Program
@damieng
damieng / princeton.txt
Created Jan 27, 2021
Princeton Ultra 16 Notes
View princeton.txt
Princeton proprietary 25 pin connector pinout
1 - GROUND TTL 2 - RED 2 OR GND TTL
RED ANALOG GRN ANALOG
3 - RED TTL 4 - GRN TTL
BLUE ANALOG COMP-HORIZ-SYNC
5 - BLUE TTL 6 - GRN 2 OR INTENSITY TTL
PCG MODE ANALOG GND ANALOG
7 - BLUE 2 TTL 8 - HORIZ-SYNC TTL
GND ANALOG GND ANALOG
@damieng
damieng / RomboZX.txt
Last active Jan 20, 2021
Rombo ZX Manual
View RomboZX.txt
VIDI
ROMBO PRODUCTIONS
VIDI-ZX
VIDEO DIGITISER FOR ZX-SPECTRUM
@damieng
damieng / zx-font-publish.sh
Last active Jan 18, 2021
ZX Spectrum font publishing
View zx-font-publish.sh
#!/bin/bash
for i in "$@"
do
name="${i%.*}"
zip="${name}.zip"
rm -rf "${zip}"
# Folder cleanup
mkdir -p Spectrum
mkdir -p PC
@damieng
damieng / Thirds.json
Created Nov 6, 2020
Ultrawide 6 division monitor config for WinDock
View Thirds.json
{
"name":"Ultrawide 6 section",
"rules":[
{
"dock":{
"monitor":0,
"values":[
0,
0,
33,
@damieng
damieng / download-with-fetch.flow.js
Created Mar 13, 2017
Download a file using just window.fetch (flowtype version)
View download-with-fetch.flow.js
// @flow
import fs from 'fs';
export default async function download(sourceUrl: string, targetFile: string, progressCallback: ?ByteProgressCallback, length: ?number): Promise<void> {
const request = new Request(sourceUrl, {
headers: new Headers({'Content-Type': 'application/octet-stream'})
});
const response = await fetch(request);
@damieng
damieng / zx-font-convert.sh
Last active Aug 15, 2020
ZX Spectrum font conversion script
View zx-font-convert.sh
#!/bin/bash
fl5reg="HKCU\Software\FontLab\Studio 5\Directories"
for i in "$@"
do
name="${i%.*}"
echo Processing $name
mkdir -p Spectrum
mkdir -p PC
mkdir -p BBC
pw.exe preview "$i" . >> /dev/null
@damieng
damieng / download-with-fetch.flow.js
Last active Jun 10, 2020
Download a file with progress indication using just window.fetch + node (FlowType version)
View download-with-fetch.flow.js
// @flow
import fs from 'fs';
// Public: Download a file and store it on a file system using streaming with appropriate progress callback.
//
// * `sourceUrl` Url to download from.
// * `targetFile` File path to save to.
// * `progressCallback` Callback function that will be given a {ByteProgressCallback} object containing
// both bytesDone and percent.
@damieng
damieng / fix-wos-screenshots.user.js
Last active Mar 24, 2020
Make the World of Spectrum screenshots work again (a Greasemonkey script)
View fix-wos-screenshots.user.js
// ==UserScript==
// @name Fix WoS screenshots
// @namespace http://damieng.com
// @version 0.1
// @description Make the World of Spectrum screenshots work again
// @author Damien Guard
// @include https://www.worldofspectrum.org/*
// ==/UserScript==
var images = document.getElementsByTagName('img');