This file contains hidden or 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
| /* Compile with gcc -Wall -o floperation floperation.c -lquadmath*/ | |
| /* Examine binary representations of floating point numbers | |
| on your machine | |
| Project Crew 8/10/2024 */ | |
| //#include <immintrin.h> | |
| #include <quadmath.h> | |
| #include <stdint.h> | |
| #include <stdio.h> |
This file contains hidden or 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
| /* compile with $ g++ -Wall -Os -o tankfreq tankfreq.cpp | |
| */ | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <cmath> | |
| #include <exception> | |
| #include <locale> // std::locale, std::numpunct, std::use_facet | |
| using namespace std; |
This file contains hidden or 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
| /* rngesus Generates random numbers >= 1 <= argv[1] | |
| * | |
| * Project Crew 11/21/2024 | |
| */ | |
| #include <iostream> | |
| #include <exception> | |
| #include <random> | |
| using namespace std; |
This file contains hidden or 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
| .MODEL TINY | |
| .STACK 100h | |
| .DATA | |
| ;msg DB 'hello, world',13,10,'$' | |
| msg DB 0d6h,0dbh,0d2h,0d2h,0d1h,092h,09eh,0c9h,0d1h,0cch,0d2h,0dah,0b3h,0b4h,09ah | |
| .CODE | |
| start: |
This file contains hidden or 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
| name cs | |
| title CS.COM--blank the Screen (CGA version) | |
| ;--- assemble: uasm -bin -Fo CS.COM CS.ASM | |
| ; | |
| ; Project Crew™ 12/6/2024 | |
| .model tiny | |
| modsel equ 3d8h ; CGA Mode-Select Register |
This file contains hidden or 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
| name dskimg | |
| page 55,132 | |
| title DSKIMG.COM--save a disk image | |
| ; Project Crew™ 1/18/2025 | |
| .MODEL tiny ; Create DSKIMG.COM | |
| bytes equ 64 * 512 ; number of bytes in buffer | |
| exit equ 4c00h ; exit back to DOS |
This file contains hidden or 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
| /* cpdump.c | |
| * ugly little DOS program to dump ASCII codepage to stdout | |
| * quick way to find character | |
| * might look beter with a case | |
| * - Project Crew Jan 2025 | |
| */ | |
| #include <stdio.h> | |
| int |
This file contains hidden or 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
| #!/bin/bash | |
| # ping with timestamps and sound Only successful pings are printed | |
| ping ${1} | \ | |
| xargs -I {} date +'[%c] {}' | \ | |
| grep --line-buffered bytes | \ | |
| while read line | |
| do | |
| echo "$line" && aplay -q ~/Sound/DING.WAV | |
| done |
This file contains hidden or 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
| #include <iostream> | |
| #include <iomanip> | |
| #include <cmath> | |
| #include <limits> | |
| #include <quadmath.h> | |
| #include <exception> | |
| //#include <boost/multiprecision/cpp_bin_float.hpp> | |
| using namespace std; | |
| /* |
This file contains hidden or 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
| #!/bin/bash | |
| ls mpv-shot*.jpg > b | |
| YEAR=$(date +%Y) | |
| COUNT=$(wc -l < b) | |
| FIRST=$((`ls Pictures/$YEAR/mpv-shot*.jpg | wc -l` + 1)) | |
| LAST=$(($FIRST + $COUNT - 1)) | |
| seq -f %04.0f $FIRST $LAST | | |
| paste b - | |