Skip to content

Instantly share code, notes, and snippets.

@vsamaru
vsamaru / awesome-selfhosted-sorted-by-stars.md
Created November 18, 2022 20:40 — forked from kvnxiao/awesome-selfhosted-sorted-by-stars.md
awesome-selfhosted-sorted-by-stars.md

Awesome-Selfhosted

Awesome

Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers.

This is a list of Free Software network services and web applications which can be hosted locally. Non-Free software is listed on the Non-Free page.

See Contributing.

@vsamaru
vsamaru / The Five Cognitive Distortions of People Who Get Stuff Done
Created November 5, 2022 22:15 — forked from ryanpitts/The Five Cognitive Distortions of People Who Get Stuff Done
Notes from Michael Dearing's "The Five Cognitive Distortions of People Who Get Stuff Done," so I don't need to look through slides every time. Source: http://quarry.stanford.edu/xapm1111126lse/docs/02_LSE_Cognitive.pdf
Five recurring, automatic patterns of thought (aka cognitive distortions) among people who get extraordinary stuff done in Silicon Valley.
1. Personal Exceptionalism: "I am special."
Definition: a macro sense that you are in the top of your cohort, your work is snowflake special, or that you are destined to have experiences well outside the bounds of "normal;" not to be confused with arrogance or high self-esteem
Benefit: resilience, stamina, charisma
Deadly risk: assuming macro exceptionalism means micro exceptionalism, brittleness
@vsamaru
vsamaru / alpine-js-fetch-data-on-x-init.markdown
Created January 7, 2021 12:20
Alpine.js fetch data on `x-init`

Alpine.js fetch data on x-init

Fetch Gist API, parse the Gist description for titles and tags (via Lepton Snippet Manager) and save it to sessionStorage to not hit the API too often.

A Pen by vsamaru on CodePen.

License.

@vsamaru
vsamaru / card-slider-with-touch-events.markdown
Created January 6, 2021 04:23
Card slider with touch events
@vsamaru
vsamaru / grid-layout-via-refrencing.markdown
Created January 5, 2021 03:32
grid layout via refrencing
<!DOCTYPE html>
<html>
<body style="font-size: 23px;font-family: monospace;">
<p id="d"></p>
<input type="text" id="one" onchange="f()"><br>
<input type="text" id="two" onchange="ff()">
<p id="demo"></p>
<script>
document.getElementById("d").innerHTML = Date.now()
var getUrl = (input) => input.match(/(https?:\/\/[^ ]*)/) ? input.match(/(https?:\/\/[^ ]*)/)[1] : null
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>