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
| # It builds all programs in the current directory. | |
| SUFFIX := cpp | |
| BASENAME := basename | |
| ECHO := /bin/echo | |
| RM := rm | |
| TEST := /bin/test | |
| XARGS := xargs |
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
| // NeoPixel Ring simple sketch (c) 2013 Shae Erisson | |
| // Released under the GPLv3 license to match the rest of the | |
| // Adafruit NeoPixel library | |
| /* ... | |
| /* Blink the single neopixel | |
| /* Wasn't in it examples? | |
| /* Project Crew™ 8/2/2025 | |
| */ | |
| #include <Adafruit_NeoPixel.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 -o wind_chill wind_chill.cpp | |
| * | |
| * ported from meteocalc by Project Crew™ on 8/1/2025 | |
| * see https://web.archive.org/web/20110918010232/http://www.weather.gov/os/windchill/index.shtml | |
| * https://en.wikipedia.org/wiki/Wind_chill | |
| */ | |
| #include <iostream> | |
| #include <cmath> | |
| #include <string> |
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 heat_index heat_index.cpp | |
| * | |
| * ported to C++ from meteocalc by Project Crew™ 7/28/2025 | |
| * tested against "Heat index calculator" of Calculator.net | |
| * see https://en.wikipedia.org/wiki/Heat_index | |
| * http://www.wpc.ncep.noaa.gov/html/heatindex_equation.shtml | |
| */ | |
| #include <iostream> | |
| #include <iomanip> |
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 -o dewpoint dewpoint.cpp | |
| * | |
| * ported from meteocalc by Project Crew™ on 7/26/2025 | |
| */ | |
| #include <iostream> | |
| #include <map> | |
| #include <cmath> | |
| #include <string> | |
| #include <filesystem> |
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
| /* Capacitance + Voltage² -> joules calc | |
| * Project Crew™ 6/28/2025 | |
| */ | |
| #include <iostream> | |
| #include <cmath> | |
| #include <exception> | |
| using namespace std; | |
| 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 | |
| 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 - | |
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 | |
| # 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
| /* 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 |