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
body { | |
display: grid; | |
height: 100vh; | |
grid-gap: 1rem; | |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | |
} |
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
<header><h1 contenteditable>Header.com</h1></header> | |
<div class="left-sidebar" contenteditable>Left Sidebar</div> | |
<main contenteditable></main> | |
<div class="right-sidebar" contenteditable>Right Sidebar</div> | |
<footer contenteditable>Footer Content — Header.com 2020</footer> |
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
.main { | |
display: grid; | |
height: 100vh; | |
grid-template-rows: auto 1fr auto; | |
} |
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
.parent { | |
display: flex; | |
flex-wrap: wrap; | |
} | |
.child { | |
// flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ] | |
// If we don't want the items to stretch: | |
flex: 0 1 300px; | |
// If we do want the items to stretch: |
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
.parent { | |
display: grid; | |
place-items: center; | |
} |
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
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c> |
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
:root { | |
/* Colors */ | |
--color-background: white; | |
--color-text: #333; | |
--color-text-muted: #777; | |
--color-border: #eee; | |
--color-primary: hsl(210, 70%, 50%); | |
--color-background-faded: #f2f2f2; |
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
/** | |
* Resets | |
* | |
* Global resets to common HTML elements. | |
* Doesn't depend on any third party libraries. | |
* Inspired by Normalise.css and bootstrap/_reboot.scss | |
* Doesn't reset form and table because it's hard to set styles back in third-party libraries | |
*/ | |
/* #region html and body */ |
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
export const wait = (delay: number) => | |
new Promise((res) => setTimeout(res, delay)); |
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 | |
# FILES=./files/* | |
TARGET=./new # make sure that folder exists! | |
COUNTER=1 # if you want to start from 0, just put 0 there | |
for f in $(ls -t files/*) | |
do | |
echo "Processing $f file..." | |
mv -i $f $TARGET/$COUNTER"___"${f##*/} | |
let "COUNTER++" |