Skip to content

Instantly share code, notes, and snippets.

@Alejandro-BR
Alejandro-BR / storageManager.js
Last active January 28, 2025 17:23
Funciones de utilidad para gestionar de forma sencilla el localStorage y sessionStorage.
// Funciones de utilidad para gestionar el localStorage y sessionStorage.
/**
* Guarda un item en localStorage.
* @param {object[]} item - Objeto o array a almacenar.
* @param {string} clave - Clave del item en localStorage.
*/
export function updateLocalStorage(item, clave) {
localStorage.setItem(clave, JSON.stringify(item));
}
@ayebrian
ayebrian / vmware.md
Last active January 28, 2025 17:22
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@aashari
aashari / 00-system-instruction.md
Last active January 28, 2025 17:20
Cursor System Instruction

You are a powerful agentic AI coding assistant, powered by GPT-4o. You operate exclusively in Cursor, the world's best IDE.

You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. This information may or may not be relevant to the coding task, it is up for you to decide. Your main goal is to follow the USER's instructions at each message.

1. Be concise and do not repeat yourself.
@Soraxem
Soraxem / model-airplane.ino
Created January 28, 2025 17:18
LED blink script for model airplane, leveraging state machines.
/*
Author: Samuel Hafen
Description: Flashes LEDs for a model Airplane
*/
// Define the wing lights
bool wing_strobe = true; // Output of the sequence
int wing_delays[] = {50,50,50,750}; // Delay Sequence, waits in ms and then toggles output
@101arrowz
101arrowz / README.md
Last active January 28, 2025 17:19
Download a McGraw Hill Education eTextbook

Download a McGraw Hill Education eTextbook

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc. That's why I wrote this script to download the textbook as an ePub file for your own viewing.

Using this script is 100% legal. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. Moreover, to use it, you must already have purchased the book you would like to download, so it is legally yours to use as you please. However, it IS illegal to use this for piracy purposes. DO NOT DISTRIBUTE ANY TEXTBOOKS YOU DOWNLOAD USING THIS SCRIPT.

@nicolasparada
nicolasparada / random_string.go
Last active January 28, 2025 17:19
Quick and easy way to generate a random string in golang
package main
import (
"fmt"
"math/rand"
"time"
)
func main() {
rand.Seed(time.Now().UnixNano())
@vjeeva
vjeeva / atsv_12_3_inch_cluster_programming.md
Last active January 28, 2025 17:18
ATS-V 12.3 inch Cluster Programming for 2016-2019

ATS-V 12.3 inch Cluster Programming for 2016-2019

This gist contains instructions for programming a 12.3 inch digital Cadillac cluster for 2016-2019 ATS-V models. The 12.3 inch cluster from any Cadillac for the same model year and IO6 vs IOT radio can be used. The cluster will need to be configured to work with your car. This is a DIY project and requires some technical knowledge and tools.

This will support both 6MT and AE8 (8-speed auto) ATS-Vs. The cluster will show the correct gear for the 6MT and -- for neutral, and PRNDM the 8-speed auto. The cluster will also show the correct speed and RPM with the V gauges, and a proper boost gauge with negative values for vacuum. It will totally work for your car!

Note that these instructions do not include how to make the 12.3 cluster physically fit inside the car. My personal recommendation for this is to contact G-Spec LLC on Facebook for their retrofit kit. I have no affiliation with them, but a few people have used it and are happy. I will be using it m

@staltz
staltz / introrx.md
Last active January 28, 2025 17:13
The introduction to Reactive Programming you've been missing
@evanwill
evanwill / gitBash_windows.md
Last active January 28, 2025 17:12
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

@erikcox
erikcox / SimCityLoadingMessages.txt
Created November 11, 2015 21:23
A list of loading messages from the game SimCity, which I repurposed for Slack loading messages.
Adding Hidden Agendas
Adjusting Bell Curves
Aesthesizing Industrial Areas
Aligning Covariance Matrices
Applying Feng Shui Shaders
Applying Theatre Soda Layer
Asserting Packed Exemplars
Attempting to Lock Back-Buffer
Binding Sapling Root System
Breeding Fauna