Skip to content

Instantly share code, notes, and snippets.

@thomask77
thomask77 / spelling.txt
Created May 1, 2020 20:46
codespell -q4
This file has been truncated, but you can view the full file.
./CONTRIBUTING.md:31: thru ==> through
./Utilities/JPEG/jpeg_utils.c:78: informations ==> information
./Utilities/JPEG/jpeg_utils.c:123: utilties ==> utilities
./Utilities/JPEG/jpeg_utils.c:434: blcoks ==> blocks
./Utilities/JPEG/jpeg_utils.c:579: blcoks ==> blocks
./Utilities/JPEG/jpeg_utils.c:692: blcoks ==> blocks
./Utilities/JPEG/jpeg_utils.c:783: blcoks ==> blocks
./Utilities/JPEG/jpeg_utils.c:871: blcoks ==> blocks
./Utilities/JPEG/jpeg_utils.c:955: Retrive ==> Retrieve
./Utilities/JPEG/jpeg_utils.c:956: informations ==> information
@thomask77
thomask77 / summon-scopes.sh
Last active May 7, 2019 16:51
Compile Scopes from source
#!/bin/bash
#
# Installation script for Duangle's Scopes language
#
# 2019-05-07: Tested on Ubuntu 18.04 with Scopes 0.15
#
set -o nounset -o pipefail -o errexit
SCOPES_DIR=${SCOPES_DIR:-"$PWD/scopes-repo"}
NPROC=${NPROC:-$(nproc)}
/**
.__ .___ _____
_____|__| __| _// | |_____ ___ _________
/ ___/ |/ __ |/ | |\__ \\ \/ /\_ __ \
___________ \___ \| / /_/ / ^ // __ \\ /__| |_\/___________
/____ >__\____ \____ |(____ /\_/ |__|
\/ \/ |__| \/
Copyright (c)2008 Thomas Kindler <mail_sid4avr@t-kindler.de>
@thomask77
thomask77 / retarget_locks_static.c
Last active March 27, 2024 12:34
newlib retarget locks for FreeRTOS (static version)
// -------------------- Retarget Locks --------------------
//
// share/doc/gcc-arm-none-eabi/pdf/libc.pdf:
//
// Newlib was configured to allow the target platform to provide the locking routines and
// static locks at link time. As such, a dummy default implementation of these routines and
// static locks is provided for single-threaded application to link successfully out of the box on
// bare-metal systems.
//
// For multi-threaded applications the target platform is required to provide an implementa-
@thomask77
thomask77 / retarget_locks_dynamic.c
Last active March 27, 2024 12:34
newlib retarget locks for FreeRTOS (dynamic version)
// -------------------- Retarget Locks --------------------
//
// share/doc/gcc-arm-none-eabi/pdf/libc.pdf:
//
// Newlib was configured to allow the target platform to provide the locking routines and
// static locks at link time. As such, a dummy default implementation of these routines and
// static locks is provided for single-threaded application to link successfully out of the box on
// bare-metal systems.
//
// For multi-threaded applications the target platform is required to provide an implementa-
@thomask77
thomask77 / oscillo.pl
Last active August 29, 2015 14:22 — forked from windytan/oscillo.pl
use warnings;
use Getopt::Std;
getopt('xytGgwsf',\%opts);
# pcm file = $opts{f}
# samples per pixel x
$xscale = $opts{x} // 1200;
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos