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;
}| #include <vector> | |
| #include <string> | |
| #include <cstdio> | |
| #include <cmath> | |
| // set to 1 to make LU factorization show pivots | |
| #define VERBOSE_LU 0 | |
| // gMin for diodes etc.. | |
| static const double gMin = 1e-12; |
| MainWindow @mainwindow; | |
| class MainWindow { | |
| private GUI::Window @window; | |
| private GUI::Button @btnSavePos; | |
| private GUI::Button @btnWarpToPos; | |
| MainWindow() { | |
| @window = GUI::Window(140,32,true); | |
| window.title = "Control Window"; |
| ### | |
| ### | |
| ### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
| ### https://christitus.com/windows-tool/ | |
| ### https://github.com/ChrisTitusTech/winutil | |
| ### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
| ### iwr -useb https://christitus.com/win | iex | |
| ### | |
| ### OR take a look at | |
| ### https://github.com/HotCakeX/Harden-Windows-Security |
| windows = false; // show windows | |
| stuff = false; // Show bikes, table, mower | |
| l = 32; // Length of building in feet (16, 20, 24, 28, 32, ...) | |
| h = 8*12-4.5+.5; | |
| rl=6*12+1.375+.1; // cut to 73.5" long with 22.5 degree angles | |
| tl = 68.7; // Used to tweak headers on top walls | |
| // 2x6 concrete forms for foundation | |
| // 10" wide grid |
| #include <stdio.h> | |
| int f0(unsigned int x) { return x? (x&(1<<31)? f1(x<<1) : f0(x<<1)) : 1; } | |
| int f1(unsigned int x) { return x? (x&(1<<31)? f3(x<<1) : f2(x<<1)) : 0; } | |
| int f2(unsigned int x) { return x? (x&(1<<31)? f0(x<<1) : f4(x<<1)) : 0; } | |
| int f3(unsigned int x) { return x? (x&(1<<31)? f2(x<<1) : f1(x<<1)) : 0; } | |
| int f4(unsigned int x) { return x? (x&(1<<31)? f4(x<<1) : f3(x<<1)) : 0; } | |
| int t0(unsigned int x) { return x? (x&(1<<31)? t1(x<<1) : t0(x<<1)) : 1; } | |
| int t1(unsigned int x) { return x? (x&(1<<31)? t0(x<<1) : t2(x<<1)) : 0; } | |
| int t2(unsigned int x) { return x? (x&(1<<31)? t2(x<<1) : t1(x<<1)) : 0; } |
| Moved to https://github.com/JamesDunne/QueryAshxClient |