Skip to content

Instantly share code, notes, and snippets.

View lctrt's full-sized avatar

Quentin Leonetti lctrt

View GitHub Profile
@npisanti
npisanti / logscaling.cpp
Created June 16, 2019 11:49
pitch to frequency and frequency to pitch conversions
#define TUNINGFREQ 440.0
float p2f( float pitch ){
return pow( 2.0, (pitch-69.0)/12.0 ) * TUNINGFREQ;
}
float f2p( float freq ){
return (log2( freq / TUNINGFREQ ) * 12.0f ) + 69.0f;
}
@bkaradzic
bkaradzic / orthodoxc++.md
Last active May 17, 2024 10:22
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@hzulla
hzulla / sonicpi-crash-course.txt
Last active May 9, 2023 09:25
Crash into Sonic Pi: Learn to code music in less than 30 minutes
# -------------------------------------------
# CRASH INTO SONIC PI!
# Learn to code music in less than 30 minutes
# -------------------------------------------
# - download Sonic Pi from sonic-pi.net
# - copy and paste these code snippets
# - change and experiment with the snippets
# - go!
# -------------------------------------------
# These snippets were made for a workshop to
@j3j5
j3j5 / gist:8b3e48ccad746b90a54a
Last active November 16, 2023 15:11
Adyen Test Card Numbers
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
# Antnee's Classy Filter! v3.0a
# https://www.pathofexile.com/forum/view-thread/1245785
# Instructions for use:
# Right-click this page, click "select all"
# Right click again, click "Copy"
# Open a new .txt document and paste the contents of this page into it
# USE ANSI ENCODING IF YOU USE NOTEPAD++ OR ANY OTHER TEXT EDITOR
# Click File/Save As
# Select "All Files" from the dropdown menu at the bottom
@JaviLorbada
JaviLorbada / FRP iOS Learning resources.md
Last active April 8, 2024 18:07
The best FRP iOS resources.

Videos

@dwayne
dwayne / 01-intro.md
Last active June 27, 2023 02:42
My notes from the book "ng-book: The Complete Book on AngularJS by Ari Lerner".

Introduction

Author: Ari Lerner.

AngularJS offers a single framework that can be used to build dynamic, client-centric applications. It provides:

  • Module support
  • DOM manipulation
  • Animations
  • Templating