Skip to content

Instantly share code, notes, and snippets.

@codigoconjuan
codigoconjuan / db.js
Created August 22, 2023 23:18
Gist Guitarras para GuitarLA - React y TypeScipt - La Guía Completa
export const db = [
{
id: 1,
name: 'Lukather',
image: 'guitarra_01',
description: 'Morbi ornare augue nisl, vel elementum dui mollis vel. Curabitur non ex id eros fermentum hendrerit.',
price: 299,
},
{
id: 2,
@JMichaelTX
JMichaelTX / JXA Resources.md
Last active December 12, 2025 02:47
JavaScript for Automation (JXA) Resources

JXA Resources

Revised: 2019-11-28 16:16 GMT-6

JXA

This is a list of the key resources I have found useful. If you know of others, please post in a comment below, and I will add to this list.

I have tried to order this list in the order that, to me, is best for learning JXA from scratch. We all learn a bit diferently, so adjust to suit your style/needs. Please post if you have suggestions on learning JXA.

@zakisaad
zakisaad / README.md
Created May 11, 2018 13:41 — forked from plugnburn/README.md
JJY.js: Web Audio API based JJY transmitter

JJY.js: JJY time signal emulation/transmission library

Usage

  1. Make sure that the watch/clock is configured to receive JJY 40 KHz signal (for most Casio Waveceptor/G-Shock watches, the easiest way is to enter the engineer menu by pressing Mode+Light+Receive and select J 40 reception mode, for all other watches you need to set the home city to Tokyo)
  2. Make sure your device clock is in sync before running the emulator.
  3. From the page, run:
@ayamflow
ayamflow / Git team workflow - merge + rebase
Last active December 12, 2025 02:45
Git team workflow - merge + rebase
Git team workflow - merging and rebasing
0. git checkout [branch]
1. git push origin [branch]
2. git checkout master
3. git pull --rebase
4. git checkout [branch]
5. git rebase master
(6.) git mergetool / git rebase --continue
@ayamflow
ayamflow / gist:8690726
Last active December 12, 2025 02:45
Handy Git commands

Handy Git commands

  • Show list of commits with hash: git log
  • Show file at revision: git show REVISION:path/to/file
  • Roll back to revision: git reset --hard REVISION
  • Revert a file to revision: git checkout REVISION path/to/file
  • Get my colleague's file version during a merge: git checkout --theirs path/to/file
  • Add a remote : git remote add origin https://github.com/user/repo.git
  • Force unstash : git stash show -p | git apply && git stash drop

DigitalOcean Promo Code 2026 / $200 - $400 / 2-Months Valid

DigitalOcean offers substantial discounts for new users via exclusive promo codes. These codes provide free credits ranging from $10 to $200 to experience DigitalOcean's cloud services.

This guide provides:

  • A list of currently active and latest DigitalOcean promo codes with applicable credit amounts, services, expiry dates and terms.
  • Step-by-step instructions to easily redeem codes as a new user, along with tips to maximize promotional savings.
  • One special offer that will give you free credits that is valid for 2 months.
@ehrenfeu
ehrenfeu / backup-lxc-with-tar.md
Last active December 12, 2025 02:43
Backup up LXC containers using `tar`

Creating tarballs from LXC containers

NOTE: this is about tarring up plain LXC (i.e. not LXD) containers without the benefits of btrfs or similar

shut down the respective container, e.g.

lxc-stop mycontainer
@ayamflow
ayamflow / circle-slice.glsl
Created June 30, 2020 00:19
Drawing/animating circle arc in glsl
const float PI = 3.141592653589793;
vec2 rotateUV(vec2 uv, float rotation)
{
float mid = 0.5;
return vec2(
cos(rotation) * (uv.x - mid) + sin(rotation) * (uv.y - mid) + mid,
cos(rotation) * (uv.y - mid) - sin(rotation) * (uv.x - mid) + mid
);
}
@ayamflow
ayamflow / unity-gotchas.md
Last active December 12, 2025 02:42
Unity gotchas

I'm learning unity by redoing old projects or scenes of videogames (coming from a webGL background), and documenting things I get stuck on, as well as findings.

OpenUPM (and other UPM)

Basically npm for Unity. Just need to add dependencies and scopedRegistries to Packages/manifest.json, Unity will detect the change and install the package.

Importing upm packages in a shader (ShaderLab)

Add this line in CGPROGRAM, after #include "UnityCG.cginc":

#include "Packages/jp.keijiro.noiseshader/Shader/SimplexNoise2D.hlsl"

@rosek86
rosek86 / genBitsReversal.py
Last active December 12, 2025 02:39
Bits reversal for CMSIS-DSP FFT
import math
import argparse
from sympy.combinatorics import Permutation
def bits_for_value(value):
return int(math.log2(value))
def decompose(N, R):
logN2 = bits_for_value(N)
logR2 = []