Skip to content

Instantly share code, notes, and snippets.

View griimick's full-sized avatar
🦫
Where's my fish?

Soumik griimick

🦫
Where's my fish?
View GitHub Profile
@anujkumarnath
anujkumarnath / create-your-own-nerd-font.md
Last active September 4, 2023 18:13
How to create your own Nerd Fonts.

The steps are written assuming you are in a Ubuntu distro. Please adjust the installation instructions according to your distros. Follow the official docs for other environments.

Steps:

  1. Make sure you have python3 installed in your system
  2. Download the required script and helper files: archive
  3. Extract the zip file
  4. Collect the source font files and put them somewhere in a folder
  5. Download the dependencies: sudo apt install fontforge python3-fontforge
@repi
repi / crate-health.md
Last active February 22, 2024 01:17
Guidelines on evaluating health & quality of third-party crates at Embark

What to evaluate and consider before adding usage of new third-party crates.

These are not exact requirements but questions to investigate and discuss to help reason around the health, safety, maintainability, and more around crates.

This can also be read as an opinionated guide for crate authors of what our (Embark's) guidelines and recommendations are, though should not be taken too literally.

Legend: 🔒 Must have, ⭐️ Should have, 👍 Nice to have, ℹ️ Info

@jolheiser
jolheiser / catppuccin.tape
Created October 28, 2022 14:52
Catppuccin themes for vhs tapes
# Latte
Set Theme { "black": "#5c5f77", "red": "#d20f39", "green": "#40a02b", "yellow": "#df8e1d", "blue": "#1e66f5", "purple": "#ea76cb", "cyan": "#179299", "white": "#acb0be", "brightBlack": "#6c6f85", "brightRed": "#d20f39", "brightGreen": "#40a02b", "brightYellow": "#df8e1d", "brightBlue": "#1e66f5", "brightPurple": "#ea76cb", "brightCyan": "#179299", "brightWhite": "#bcc0cc", "background": "#eff1f5", "foreground": "#4c4f69", "selectionBackground": "#acb0be", "cursorColor": "#dc8a78" }
# Frappe
Set Theme { "black": "#51576d", "red": "#e78284", "green": "#a6d189", "yellow": "#e5c890", "blue": "#8caaee", "purple": "#f4b8e4", "cyan": "#81c8be", "white": "#b5bfe2", "brightBlack": "#626880", "brightRed": "#e78284", "brightGreen": "#a6d189", "brightYellow": "#e5c890", "brightBlue": "#8caaee", "brightPurple": "#f4b8e4", "brightCyan": "#81c8be", "brightWhite": "#a5adce", "background": "#303446", "foreground": "#c6d0f5", "selectionBackground": "#626880", "cursorColor": "#f2d5cf" }
# Macchiato
Set Theme { "black"
@steveruizok
steveruizok / cache.ts
Last active March 31, 2023 14:43
weak map gist
export class Cache<T extends object, K> {
items = new WeakMap<T, K>()
get<P extends T>(item: P, cb: (item: P) => K) {
if (!this.items.has(item)) {
this.items.set(item, cb(item))
}
return this.items.get(item)!
}
@getify
getify / 1-CalendarItem.js
Last active March 21, 2024 09:11
an illustration (non-trivial example) of many newer JS class features
// abstract class, not intended to be instantiated directly
class CalendarItem {
static #UNSET = Symbol("unset")
static #isUnset(v) {
return v === this.#UNSET;
}
static {
for (let [idx,msg] of [
"ID is already set.",
"ID is unset.",
@alastaira
alastaira / PlaceTrackedImages.cs
Created June 27, 2022 20:25
Unity 2022 Augmented Reality Image Tracking Handler
// See https://youtu.be/gpaq5bAjya8 for accompanying tutorial and usage!
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
[RequireComponent(typeof(ARTrackedImageManager))]
public class PlaceTrackedImages : MonoBehaviour {
@anchan828
anchan828 / README.md
Last active May 1, 2024 04:26
This is an improvement to allow @nestjs/typeorm@8.1.x to handle CustomRepository. I won't explain it specifically, but it will help in some way. https://github.com/nestjs/typeorm/pull/1233

You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.

1. EntityRepository -> CustomRepository

@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}

@mrousavy
mrousavy / MEMOIZE.md
Last active April 22, 2024 19:26
Memoize!!! 💾 - a react (native) performance guide
In computing, memoization or memoisation
is an optimization technique used primarily
to speed up computer programs by storing
the results of expensive function calls and  
returning the cached result when the same
inputs occur again.                                         
                                                     — wikipedia
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&family=Fira+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap");
:root {
--background: #282828;
--light-background: #3c3836;
--lighter-background: #504945;
--dark-background: #3c3836;
--darker-background: #1d2021;
--foreground: #ebdbb2;
--current-line: #504954;