Skip to content

Instantly share code, notes, and snippets.

@manzt
manzt / my-ts-monorepo.md
Last active May 17, 2024 14:47
A minimal setup for TypeScript monorepo libraries

My Minimal TypeScript Monorepo Setup for ESM Libraries

After a deep dive looking up best practices for TypeScript monorepos recently, I couldn't find anything that suited my needs:

  1. Publish individual (typed) packages to NPM with minimal config.
  2. Supports fast unit testing that spans the entire project (e.g., via Vitest)
  3. Ability to have an interactive playground to experiment with the API in a real-time (e.g., via Vite)

Most solutions point to TypeScript project references,

@thefish
thefish / utf8-win1251
Created May 21, 2013 08:31
JS utf-8 to windows-1251 string converter
//utf8 to 1251 converter (1 byte format, RU/EN support only + any other symbols) by drgluck
function utf8_decode (aa) {
var bb = '', c = 0;
for (var i = 0; i < aa.length; i++) {
c = aa.charCodeAt(i);
if (c > 127) {
if (c > 1024) {
if (c == 1025) {
c = 1016;
} else if (c == 1105) {
@natyusha
natyusha / Naty's FFXIV Endwalker Add-ons, Plugins and Mods.md
Last active May 17, 2024 14:44
All the third party add-ons, plugins and mods I use for FFXIV.

Last Updated: Patch 6.58

The program which most people use for parsing in FFXIV and several other MMOs. For an open source alternative consider using IINACT though configuring it won't be covered here.

Options

  • Main Table Encounters
    • General
      • Uncheck: Number of seconds to wait after the last combat action to begin a new encounter.
      • Uncheck: Number of seconds to wait after the last combat action to pause the encounter duration.

Plugins

@simzou
simzou / README.md
Last active May 17, 2024 14:43
US Map of Nielsen Media Markets
@KhaosT
KhaosT / HDMI on Apple Vision Pro.md
Last active May 17, 2024 14:43
Guide for using Apple Vision Pro as HDMI display

Displaying HDMI sources on Apple Vision Pro

While it's possible to stream most content to Apple Vision Pro directly over the internet, having the ability to use Apple Vision Pro as an HDMI display can still be useful.

Since Apple Vision Pro does not support connecting to an HDMI input directly or using an HDMI capture card, we have to be a little creative to make this work. NDI provides the ability to stream HDMI content over a local network with really low latency, and it works great with Apple Vision Pro.

This page shows the setup I’m using.

@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {
@fomvasss
fomvasss / Шпаргалка по Markdown.md
Created October 26, 2018 22:39
Шпаргалка по Markdown
@f41ardu
f41ardu / tello_opencv_Cam.py
Last active May 17, 2024 14:37
Raspberry, python3.7, opencv and Tello.
#
# --- (c) 01/2020 f41ardu
#
# Tello cam using opencv proof of concept
# issue: huge delay -> Tipp scale down video size for improved performance on Raspberry PI 3+
# May also work with older versions of opencv supporting incomming udp streams.
#
#import numpy as np
# import opencv 4.2.0
@fsworld009
fsworld009 / 1 steam_deck_notes.md
Last active May 17, 2024 14:36
Steam deck setup notes.md

Disk encryption

None. ValveSoftware/SteamOS#771 Be careful on what you are storing in this device (using browser and login to your accounts is NOT a good idea for now).

Barrier

Being able to control Steamdeck by using mouse and keyboard connected to PC/Laptop

@rlane
rlane / matrix.glsl
Created September 17, 2011 01:12
GLSL matrix functions
mat4 translate(vec3 d)
{
return mat4(1, 0, 0, d.x,
0, 1, 0, d.y,
0, 0, 1, d.z,
0, 0, 0, 1);
}
mat4 scale(float c)
{