Skip to content

Instantly share code, notes, and snippets.

@Hahlh
Hahlh / px-rem-tw.csv
Created February 23, 2021 04:55 — forked from trevorgreenleaf/px-rem-tw.csv
PX to REM'S to TAILWIND CSS
PX REM TW
4 0.25 1
8 0.5 2
16 1 4
32 2 8
48 3 12
64 4 16
80 5 20
96 6 24
112 7 28
@Hahlh
Hahlh / axios-catch-error.js
Created February 8, 2021 19:00 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
/*
* Handling Errors using async/await
* Has to be used inside an async function
*/
try {
const response = await axios.get('https://your.site/api/v1/bla/ble/bli');
// Success 🎉
console.log(response);
} catch (error) {
// Error 😨
@Hahlh
Hahlh / quotes.json
Last active February 21, 2021 14:26
[Quotes] #data
{
"quotes": [
{
"quote": "Success isn't owned. It is leased, and rent is due everyday.","author":"JJ Watts"
},
{
"quote": "Nobody tells this to people who are beginners, I wish someone told me. All of us who do creative work, we get into it because we have good taste. But there is this gap. For the first couple years you make stuff, it’s just not that good. It’s trying to be good, it has potential, but it’s not. But your taste, the thing that got you into the game, is still killer. And your taste is why your work disappoints you. A lot of people never get past this phase, they quit. Most people I know who do interesting, creative work went through years of this. We know our work doesn’t have this special thing that we want it to have. We all go through this. And if you are just starting out or you are still in this phase, you gotta know its normal and the most important thing you can do is do a lot of work. Put yourself on a deadline so that every week you will finish one story. It is
@Hahlh
Hahlh / yay_cleaning
Created June 15, 2020 08:04
yay_cleaning #yay
# Print system statistics
yay -Ps
# Delete cache
yay -Scc
# Delete unneeded dependencies