Skip to content

Instantly share code, notes, and snippets.

View 0b5vr's full-sized avatar

0b5vr 0b5vr

View GitHub Profile
#version 410 core
uniform float fGlobalTime; // in seconds
uniform vec2 v2Resolution; // viewport resolution (in pixels)
uniform sampler1D texFFT; // towards 0.0 is bass / lower freq, towards 1.0 is higher / treble freq
uniform sampler1D texFFTSmoothed; // this one has longer falloff and less harsh transients
uniform sampler1D texFFTIntegrated; // this is continually increasing
uniform sampler2D texChecker;
uniform sampler2D texNoise;
@fand
fand / server.go
Created December 5, 2018 07:08
easy http server
package main
import (
"fmt"
"log"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
@neon-izm
neon-izm / HumanTrait.MuscleNames.csv
Created September 17, 2018 02:36
HumanPose.musclesの中身の95個のfloatはこんな感じ。55から94に指の情報が入っている
0 Spine Front-Back
1 Spine Left-Right
2 Spine Twist Left-Right
3 Chest Front-Back
4 Chest Left-Right
5 Chest Twist Left-Right
6 UpperChest Front-Back
7 UpperChest Left-Right
8 UpperChest Twist Left-Right
9 Neck Nod Down-Up
@hellais
hellais / gist:4552537
Last active March 9, 2024 13:34
Clear the logs of the all the files you downloaded in OSX (ref: www.tuaw.com/2012/02/14/mac-os-xs-quarantineevents-keeps-a-log-of-all-your-downloads/)
# To delete all the currently stored files
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent where LSQuarantineEventIdentifier like "%%";'
# To never store such information you can sym link it to dev null
ln -s /dev/null ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2
@gasman
gasman / pnginator.rb
Created April 30, 2012 18:08
pnginator: pack Javascript into a self-extracting PNG
#!/usr/bin/env ruby -w
# pnginator.rb: pack a .js file into a PNG image with an HTML payload;
# when saved with an .html extension and opened in a browser, the HTML extracts and executes
# the javascript.
# Usage: ruby pnginator.rb input.js output.png.html
# By Gasman <http://matt.west.co.tt/>
# from an original idea by Daeken: http://daeken.com/superpacking-js-demos