smolYAML is a minimal zero-dependency yaml parser. Well, subset-of-yaml parser.
name: Lea| {************************************************************************** | |
| SBFMPAS | |
| SBFM Utilitys | |
| Date: 4/4/91 | |
| Version: 1 | |
| *************************************************************************** |
| {************************************************************************** | |
| ADLIB | |
| FM AdLib Sound Utilitys | |
| Date: 4/4/91 | |
| Version: 1 | |
| *************************************************************************** |
| const MAGIC = [ | |
| [/^###### (.+)$/g, '<h6>$1</h6>'], | |
| [/^##### (.+)$/g, '<h5>$1</h5>'], | |
| [/^#### (.+)$/g, '<h4>$1</h4>'], | |
| [/^### (.+)$/g, '<h3>$1</h3>'], | |
| [/^## (.+)$/g, '<h2>$1</h2>'], | |
| [/^# (.+)$/g, '<h1>$1</h1>'], | |
| [/ $/g, '<br/>'], | |
| [/_(.+)_/g, '<u>$1</u>'], | |
| [/\*(.+)\*/g, '<em>$1</em>'], |
Count up a version which is read from a VERSION file. The VERSION is assumed to be in the format v1.2.3
./upcount-version.sh major increments the major version./upcount-version.sh minor increments the minor version./upcount-version.sh increments the patch version| { | |
| Lea's alte Pascal-Unit, um den Zeichensatz im Textmode zu ändern. Es hat auch Funktionen um die Rasterfont | |
| im BIOS auszulesen :) | |
| } | |
| Unit Textfont; | |
| INTERFACE | |
| const punkte:byte=16; {Zeichenhîhe} |
| // by alex evans, 2011. released into the public domain. | |
| // based on a first ever reading of the png spec, it occurs to me that a minimal png encoder should be quite simple. | |
| // this is a first stab - may be buggy! the only external dependency is zlib and some basic typedefs (u32, u8) | |
| // | |
| // VERSION 0.02! now using zlib's crc rather than my own, and avoiding a memcpy and memory scribbler in the old one | |
| // by passing the zero byte at the start of the scanline to zlib first, then the original scanline in place. WIN! | |
| // | |
| // more context at http://altdevblogaday.org/2011/04/06/a-smaller-jpg-encoder/. | |
| // | |
| // follow me on twitter @mmalex http://twitter.com/mmalex |
| // by alex evans, 2011. released into the public domain. | |
| // based on a first ever reading of the png spec, it occurs to me that a minimal png encoder should be quite simple. | |
| // this is a first stab - may be buggy! the only external dependency is zlib and some basic typedefs (u32, u8) | |
| // | |
| // more context at http://altdevblogaday.org/2011/04/06/a-smaller-jpg-encoder/. | |
| // | |
| // follow me on twitter @mmalex http://twitter.com/mmalex | |
| // | |
| u32 crc_table[256]={0}; | |
| void make_crc_table(void) |
| org 100h | |
| LINES equ 25 | |
| COLS equ 40 | |
| section .text | |
| entry: mov ax,0x01 | |
| int 0x10 | |
| mov di, 0xb800 |
| import { UniformStruct } from "./uniform-struct"; | |
| describe('UniformStruct', () => { | |
| it('should create an empty buffer and data structure by default', () => { | |
| const us = new UniformStruct(); | |
| expect(us.buffer).toBeInstanceOf(ArrayBuffer); | |
| expect(us.buffer.byteLength).toBe(0); |