Skip to content

Instantly share code, notes, and snippets.

View sagerio's full-sized avatar

sager.io sagerio

View GitHub Profile
@sagerio
sagerio / index.html
Created September 3, 2024 20:59 — forked from alyssaq/index.html
HTML5 skeleton template
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>App</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script charset="utf-8" src="js/app.js"></script>
<link rel="stylesheet" href="css/app.css" />
</head>
<body>
{
"compileOnSave": false,
"compilerOptions": {
"target": "ES2020",
"module": "esnext",
"moduleResolution": "Node",
"lib": ["ES2020"],
"strict": true,
"skipLibCheck": true,
"incremental": true,
@sagerio
sagerio / drizzle-studio-codespaces
Created May 6, 2025 21:13 — forked from KyGuy2002/drizzle-studio-codespaces
Using Drizzle Studio for local database access in GitHub Codespaces
Drizzle Studio is a cloud hosted web ui `local.drizzle.studio`.
It connects to the local hosted api that is started when using `drizzle-kit studio` in your terminal.
By default, the ui tries to connect to localhost:4983.
If using github codespaces, the server will be at a link like `your-codespace-name-4983.app.github.dev`.
If you try to use the `--host` param for the cli it won't work. (https://github.com/drizzle-team/drizzle-kit-mirror/issues/381)
Instead, use the `?host` query param when accessing `local.drizzle.studio`.
@sagerio
sagerio / git: gitignore.md
Created July 10, 2025 20:31 — forked from jstnlvns/git: gitignore.md
a gitignore cheatsheet

Git sees every file in your working copy as one of three things:

  1. tracked - a file which has been previously staged or committed;
  2. untracked - a file which has not been staged or committed; or
  3. ignored - a file which Git has been explicitly told to ignore.

Ignored files are usually build artifacts and machine generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:

  • dependency caches, such as the contents of /node_modules or /packages
  • compiled code, such as .o, .pyc, and .class files
@sagerio
sagerio / status_codes.json
Created July 21, 2025 11:18 — forked from rajeshkumaravel/status_codes.json
List of Node.js HTTP status codes
{
"100": "Continue",
"101": "Switching Protocols",
"102": "Processing",
"200": "OK",
"201": "Created",
"202": "Accepted",
"203": "Non-Authoritative Information",
"204": "No Content",
"205": "Reset Content",
@sagerio
sagerio / README.md
Created May 20, 2026 17:52 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: