When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}
/* | |
James William Fletcher (github.com/mrbid) | |
August 2021 - March 2024 | |
Benchmarking sine wave functions. | |
https://james-william-fletcher.medium.com/benchmarking-sine-functions-16b067bf63ce | |
references: | |
http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/Sinewave%20Generation(708).pdf | |
https://demonstrations.wolfram.com/SineWaveGenerationUsingAnUnstableIIRFilter/ |
1. Download Brigadier - https://github.com/timsutton/brigadier/releases | |
2. Extract and run Brigadier (via CMD) with the following flags - brigadier.exe -m Macmini8,1 | |
3. Brigadier will download and extract the bootcamp drivers for Mac Mini (2018) | |
4. Navigate - BootCamp-091-87418\BootCamp\Drivers\Apple\AppleWirelessMouse | |
5. Right click on AppleWirelessMouse.inf - Install. |
#define _WIN32_WINNT 0x0600 | |
#include <stdio.h> | |
#include <windows.h> | |
#include <fileapi.h> | |
#ifndef ENABLE_VIRTUAL_TERMINAL_PROCESSING | |
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004 | |
#endif |
@echo off | |
setlocal | |
call :setESC | |
cls | |
echo %ESC%[101;93m STYLES %ESC%[0m | |
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m | |
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m | |
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m |
/* VT100 terminal reset (<ESC>c) */ | |
console.log('\033c'); | |
/* numbers comparations */ | |
> '2' == 2 | |
true | |
> '2' === 2 |
package main | |
import ( | |
"time" | |
) | |
type LazyInt chan func() int | |
// Can't use pointer receiver: invalid operation: l <- (func literal) (send to non-chan type *LazyInt) | |
func (l LazyInt) Future(i int) { |