Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🔪

Takayosi Amagi fand

💭
🔪
View GitHub Profile
@fand
fand / shit.frag
Created Dec 18, 2018
SHIT key effect on VEDA
View shit.frag
/*{
IMPORTED: {
img: { PATH: 'shit.jpg' },
},
}*/
precision highp float;
uniform float time;
uniform vec2 resolution;
uniform sampler2D img;
@fand
fand / server.go
Created Dec 5, 2018
easy http server
View server.go
package main
import (
"fmt"
"log"
"net/http"
"os"
"os/exec"
"path/filepath"
"runtime"
View osc.frag
/*{ "osc": 4000 }*/
precision mediump float;
uniform float time;
uniform vec2 resolution;
uniform sampler2D backbuffer;
uniform sampler2D osc_tidal;
vec2 rotate(in vec2 p, in float t) {
return mat2(cos(t), -sin(t), sin(t), cos(t)) * p;
}
float random(in vec2 st) {
@fand
fand / uniforms.md
Last active Apr 12, 2018
GLSL uniform values conversion table
View uniforms.md
@fand
fand / foo.tidal
Created Apr 6, 2018
tidal midi test
View foo.tidal
import Sound.Tidal.MIDI.Context
import Sound.Tidal.MIDI.Control
import Sound.Tidal.MIDI.CC
devices <- midiDevices
m1 <- midiStream devices "" 1 synthController
m1 $ midinote "60*4 62*4 64*2 65*4"
m1 $ silence
@fand
fand / remark-strip-html-but-iframe.js
Created Mar 5, 2018
remark-strip-html-but-iframe.js
View remark-strip-html-but-iframe.js
// iframe以外のHTML文字列を禁止する。
// remark-strip-htmlを参考にした。
const IS_ATTR_ALLOWED = {
src: true,
frameborder: true,
height: true,
width: true,
};
@fand
fand / karabiner.json
Last active Jan 26, 2018
karabiner.json 2017/07/03
View karabiner.json
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": false,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@fand
fand / .anylintrc
Created Dec 22, 2017
anylint sample
View .anylintrc
{
".pl": {
"~/bin/anylint/blank.pl": 2,
},
}
View osc.frag
/*{ "osc": 4000 }*/
precision mediump float;
uniform float time;
uniform vec2 resolution;
uniform sampler2D osc_mouse_tx; // /mouse/tx [float]
uniform sampler2D osc_mouse_ty; // /mouse/ty [float]
uniform sampler2D osc_noise; // /noise [float]
uniform sampler2D osc_lfo; // /noise [float]
void main() {
You can’t perform that action at this time.