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;
}| fetch("post.php", { | |
| method: "post", | |
| mode: "cors", | |
| headers: { | |
| "Content-Type": "application/json" | |
| }, | |
| body: {data: "data"} | |
| }) | |
| .then(response => { | |
| return response.text(); // returns text that can used as html |
Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.
gituser via Diskstation interface (with File Station and WebDAV privilages)git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.| ; Variables definition | |
| ; ----------------------------------------------------------------------------- | |
| EnvGet, userProfile, USERPROFILE | |
| Software := userProfile . "\Dropbox\software\" | |
| ; Launch or toggle program, http://lifehacker.com/5468862/create-a-shortcut-key-for-restoring-a-specific-window | |
| ; ----------------------------------------------------------------------------- | |
| ToggleWinMinimize(WindowTitle) | |
| { | |
| SetTitleMatchMode,2 |