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
@echo off | |
rem elevate -w choco install -y msys2 --params "/NoUpdate /InstallDir:C:\msys64" | |
cd c:\msys64 | |
if %errorlevel% neq 0 exit /b %errorlevel% | |
rem Use windows home directory | |
usr\bin\sed.exe -i 's/^\(db_home: \)\(cygwin.*\)$/\1windows/' etc\nsswitch.conf |
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
; vi:ft=nasm | |
cpu 8086 | |
org 100h | |
section .text | |
xor bx,bx ; attrib | |
mov cx,1 ; just one thanks | |
.again: inc bx ; next attrib |
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
; vi:ft=nasm | |
cpu 8086 | |
org 0x0 | |
jmp start | |
rulz db 'seg rulz ok ',0 | |
start: cli ; disable interrupts because lolbugs | |
mov ax,0x7c0 ; BIOS loads code at 0000:7C00 |
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
10 for y=-16 to 16 | |
20 for x=-16 to 5 | |
30 ca=x*.13 | |
40 cb=y*.075 | |
50 a=ca:b=cb | |
70 for i=0 to 94 | |
80 t=a*a-b*b+ca | |
90 b=2*a*b+cb:a=t | |
110 if (a*a+b*b)>4 then goto 150 | |
120 next i |