Skip to content

Instantly share code, notes, and snippets.

@aynik
aynik / rtttl_to_casio.py
Created August 14, 2024 04:38
RTTTL folder to Casio buzzer sequence structs
#!/usr/bin/env python3
import sys
import os
from ptttl.parser import PTTTLParser
from math import log2
DURATION_ADJUSTMENT = 18
def parse_rtttl(file_path):
with open(file_path, 'r') as f:
@dodyg
dodyg / gist:5823184
Last active May 7, 2025 20:27
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.