Skip to content

Instantly share code, notes, and snippets.

View coder0107git's full-sized avatar
🎯
Focusing...

Invalid Name coder0107git

🎯
Focusing...
View GitHub Profile
@rbnpi
rbnpi / Blue_Danube-RF.rb
Last active January 2, 2024 17:43
Blue Danube waltz played by Sonic Pi hear it on https://soundcloud.com/sp-rbn/blue-danube
#Blue_Danube-RF.rb
#coded for sonic pi by Robin Newman, January 2024
#from https://musescore.com/user/29230024/scores/5161782 by andreamotas4
#Creative Commons Copyright Waiver
use_synth :blade
use_synth_defaults amp: 0.3
s=0.9;r=0.15
with_fx :reverb, room: 0.8,mix: 0.6 do
with_fx :level,amp: 1.2 do
a1=[]
@coder0107git
coder0107git / a_supercollider-synth-parser.md
Last active July 27, 2024 18:34
Supercollider synth def parser

About

A Supercollider synth def (scsyndef) file parser written in javascript.

Preview

The JSFiddle preview is here.

Resources

Sonic Pi has a lot of precompiled scsyndef files that can be found here. The synth sources are in the parent directory.

@RNGKing
RNGKing / gleam.html.markdown
Last active March 17, 2024 04:31
Learn X in Y Minutes Gleam Proposal!
@lfnoise
lfnoise / unit-test-output.txt
Last active April 23, 2024 04:47
unit tests for new audio-oriented scripting language.
RUN TESTS
>============================================================================
fn foo(x,y) {
"A" println
\a,b{ print(a,b,"; ") }(x@,y@)
"B" println
}
foo([2,3,4,5],[9,8,7,6])
"done" println
@ascopes
ascopes / http_server.sh
Last active December 20, 2025 20:04
Bash HTTP Server (using socat)
#!/usr/bin/env bash
set -o errexit
set -o nounset
function server() {
echo "Starting TCP server at http://localhost:8000..."
socat TCP-LISTEN:8000,pktinfo,reuseaddr,fork SYSTEM:"'${SHELL}' '${BASH_SOURCE[0]}' request"
}
function request() {
@miguelmota
miguelmota / external_link_arrow.txt
Last active January 8, 2026 20:08
Unicode UTF-8 external link arrow symbol (closest thing to it)
@pathnirvana
pathnirvana / AsyncJava.js
Last active December 2, 2024 01:22
Async Await call to JavascriptInterface Android Java WebView
// Allows to call a Android java function asynchronously
// spawn long running computations/io on the Java/Android without blocking the JS/Website running inside the WebView
// Eg. const result = await callAndroidAsync('javaFunction', { param1: 'value1', param2: 'value2' })
// Please give a star if you find this useful
export async function callAndroidAsync(javaFuncName, params) {
const rand = 'asyncJava_' + Math.floor(Math.random() * 1000000)
window[rand] = {}
// func called from android
@gpaciga
gpaciga / simple_cors_server.py
Last active May 17, 2024 05:39 — forked from acdha/simple_cors_server.py
Python 3: serve the current directory as HTTP while setting CORS headers for XHR debugging
#!/usr/bin/env python3
# encoding: utf-8
"""Use instead of `python3 -m http.server` when you need CORS"""
import sys
from http.server import HTTPServer, SimpleHTTPRequestHandler
class CORSRequestHandler(SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header('Access-Control-Allow-Origin', '*')
@tianhaoz95
tianhaoz95 / open-in-gitpod.md
Last active February 29, 2024 21:43
Code to add a open in Gitpod badge

Here is your awesome Open in Gitpod badge

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/[your GitHub username]/[your repository])

Open in Gitpod

@paolocarrasco
paolocarrasco / README.md
Last active January 14, 2026 15:36
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to perform a git commit and suddenly you see this error message after it 😰

error: gpg failed to sign the data
fatal: failed to write commit object

Understand the error (important to solve it later!)