-
Enable PPA
sudo apt update sudo apt install software-properties-common
-
Install apt-fast
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
client ID : 645687027098-rmibrne0gsdg0vpv7fo3fpdbkjoar0us.apps.googleusercontent.com | |
client secret : kEoPZ7XemhQEtvBaXKtgFVSW |
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
const nest = (items, id = null, link = "parent_id") => | |
items | |
.filter(item => item[link] === id) | |
.map(item => ({ ...item, children: nest(items, item.id) })) | |
const comments = [ | |
{ id: 1, parent_id: null, text: "First reply to post." }, | |
{ id: 2, parent_id: 1, text: "First reply to comment #1." }, | |
{ id: 3, parent_id: 1, text: "Second reply to comment #1." }, | |
{ id: 4, parent_id: 3, text: "First reply to comment #3." }, |
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
const mask = (str, maskChar = "#") => str.slice(-4).padStart(str.length, maskChar); | |
mask("123456789"); // "#####6789" |
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
<style> | |
@keyframes donut-spin { | |
0% { | |
transform: rotate(0deg); | |
} | |
100% { | |
transform: rotate(360deg); | |
} | |
} | |
.donut { |
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
<style> | |
::selection { | |
background: aquamarine; | |
color: black; | |
} | |
.custom-text-selection::selection { | |
background: deeppink; | |
color: white; | |
} | |
</style> |
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
<style> | |
ul { | |
counter-reset: counter; | |
} | |
li::before { | |
counter-increment: counter; | |
content: counters(counter, '.') ' '; | |
} | |
</style> | |
<ul> |
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
<style> | |
.circle { | |
border-radius: 50%; | |
width: 2rem; | |
height: 2rem; | |
background: #333; | |
} | |
</style> | |
<div class="circle"></div> |
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
<style> | |
.switch { | |
position: relative; | |
display: inline-block; | |
width: 40px; | |
height: 20px; | |
background-color: rgba(0, 0, 0, 0.25); | |
border-radius: 20px; | |
transition: all 0.3s; | |
} |
NewerOlder