Skip to content

Instantly share code, notes, and snippets.

@jaegonlee
jaegonlee / soundinput.pde
Last active September 10, 2018 07:08
processing audio input example
import processing.sound.*;
AudioIn input;
Amplitude loudness;
void setup() {
size(640, 360);
background(255);
input = new AudioIn(this, 0);
@jaegonlee
jaegonlee / fft.pde
Created September 10, 2018 07:18
processing audio frequency analyze
import processing.sound.*;
AudioIn input;
FFT fft;
//float smoothingFactor = 0.2;
float[] sum = new float[128];
public void setup() {
size(512, 360);
@jaegonlee
jaegonlee / keras_mnist_test.py
Last active January 23, 2019 15:54
simple keras mnist test
# use plaidml(gpu) for speedup
# x2~4 faster than cpu(macbook pro 15/radeon pro 460)
import numpy as np
import os
import time
os.environ["KERAS_BACKEND"] = "plaidml.keras.backend"
from keras.utils import np_utils
from keras.datasets import mnist
from keras.models import Sequential
import processing.video.*;
import java.util.ArrayList;
import java.util.List;
import org.tensorflow.Graph;
import org.tensorflow.Session;
import org.tensorflow.Tensor;
import org.tensorflow.TensorFlow;
PImage img;
@jaegonlee
jaegonlee / usbscan.swift
Last active February 27, 2020 07:47
usbscan.swift
// https://gist.github.com/zachbadgett/471d72e83fee413d0f38
//
import Foundation
import IOKit
import IOKit.usb
import IOKit.usb.IOUSBLib
print("Scanning USB Bus.....\n\n\n")
@jaegonlee
jaegonlee / GLSL-Noise.md
Created January 22, 2021 10:20 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}
@jaegonlee
jaegonlee / SMBDIS.ASM
Created March 31, 2022 14:06 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@jaegonlee
jaegonlee / reverse-engineering-webpack-apps.md
Created December 12, 2024 04:03 — forked from 0xdevalias/reverse-engineering-webpack-apps.md
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps