Arthur Eschenlauer https://orcid.org/0000-0002-2882-0508
URL: https://gist.github.com/eschen42/a223f6aeee93797a720c559a666ec069
annucode.icn annotates Icon or Unicon "ucode" files to make them somewhat
#ifndef _COEXPR_H | |
// Here are C macros to approximate Icon co-expressions, see e.g., | |
// https://web.archive.org/web/20160407082917im_/http://www.cs.arizona.edu/icon/ftp/doc/tr87_6.pdf | |
// https://web.archive.org/web/20160407001546im_/http://www.cs.arizona.edu/icon/analyst/backiss/IA21.pdf | |
// These macros were (loosely) adapted from: | |
// https://web.archive.org/web/20210611030357im_/https://www.chiark.greenend.org.uk/~sgtatham/coroutine.h | |
// see e.g., | |
// https://web.archive.org/web/20210611030357im_/https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html |
# Dockerfile to build icon without graphics, producing | |
# - statically and dynamically linked iconx | |
# - statically linked icont | |
# Note that the dynamic linking is linked: | |
# - to musl https://musl.libc.org/ | |
# - rather than glibc https://www.gnu.org/software/libc/ | |
FROM eschen42/alpine-cbuilder:release-v3.14.0 | |
# Note that this image does not /usr/include/X11/Xlib.h, so: | |
# - `make Configure` rather than `make X-Configure` | |
# - do not copy the graphics content from IPL |
# Credits | |
# https://c-nergy.be/blog/?p=13655 | |
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04 | |
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list | |
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio | |
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users | |
# https://gist.github.com/rkttu/35ecab5604c9ddc356b0af4644d5a226 | |
# First, you should install XRDP and X11 Desktop Environment first. |
// Table - A simple associative table for JavaScript | |
// methods: | |
// - size:integer - number of members in the table | |
// - keys:Array - the keys used to look up values in the Table | |
// - values:Array - the values in the table in a numbered array | |
// TODO: | |
// - add slicing | |
// - add delete-by-key | |
function Table() { | |
var t = Object.create(Table.methods) |
# ref: https://help.github.com/en/github/using-git/configuring-git-to-handle-line-endings#per-repository-settings | |
# Files that are truly binary and should not be modified. | |
#eg# *.png binary | |
donne.utf16le text working-tree-encoding=UTF-16 eol=CRLF | |
# Files to be normalized and converted to native line endings on checkout. | |
#eg# *.c text | |
# Files that will always have CRLF line endings on checkout. | |
#eg# *.sln text eol=crlf |
Arthur Eschenlauer https://orcid.org/0000-0002-2882-0508
URL: https://gist.github.com/eschen42/a223f6aeee93797a720c559a666ec069
annucode.icn annotates Icon or Unicon "ucode" files to make them somewhat
@set ERRORLEVEL=&setlocal&echo off | |
if not defined SED_EXE set SED_EXE=sed.exe | |
set ARG1=%~dpnx1 | |
if defined ARG1 ( | |
if exist "%ARG1%" ( | |
call :sed_here "%~dpnx1" | |
exit /b %ERRORLEVEL% | |
) | |
) |
setlocal | |
set DASH_R=TRUE | |
set BASE_PATH=%CD%\ | |
set BASE_PATH=%BASE_PATH::=.% | |
set BASE_PATH=%BASE_PATH:\=.% | |
if %DASH_R% == FALSE powershell -Command "Get-FileHash -Algorithm MD5 -Path %1\* | Sort-Object Path | Select-Object -Property Hash,Path | Out-String -Stream" | sed -e "/^Hash/d; /^---/d; /^$/d; s/%BASE_PATH%//" | |
if %DASH_R% == TRUE for /f "delims=" %%D in ('dir/on/s/ad-h/b %1 ^| grep -v "[\][.]"') do @powershell -Command "Get-FileHash -Algorithm MD5 -Path '%%D\*' | Sort-Object Path | Select-Object -Property Hash,Path | Out-String -Stream" | sed -e "/^Hash/d; /^---/d; /^$/d; s/%BASE_PATH%//" | |
endlocal |
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo "usage: $0 path/to/decompressed/usernetes/release/" | |
exit 1 | |
fi | |
if [ ! -d "$1" ]; then | |
echo "usage: $0 path/to/decompressed/usernetes/release/" | |
echo "path '$1' does not exist" | |
exit 1 | |
fi |