Skip to content

Instantly share code, notes, and snippets.

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

Invalid Name coder0107git

🎯
Focusing...
  • [object Object]
  • 17:27 (UTC -06:00)
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 February 20, 2024 00:03
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
@pathnirvana
pathnirvana / AsyncJava.js
Last active January 31, 2024 18:15
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 July 18, 2024 17:08
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

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

Debug

@jimmywarting
jimmywarting / readme.md
Last active July 10, 2024 00:00
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@RaptorRobokun
RaptorRobokun / DiscordProxy.js
Created April 12, 2017 18:38 — forked from Bioblaze/DiscordProxy.js
Proxy for Discord.io
var Debug = require('winston'); // logging all Errors
Debug.configure({
transports: [
new (Debug.transports.Console)(),
new (Debug.transports.File)({ filename: 'Debug.log' })
]
});
var DiscordProxy = {
addClient: function(client) {