Skip to content

Instantly share code, notes, and snippets.

💭
🔪

Takayosi Amagi fand

💭
🔪
Block or report user

Report or block fand

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 / .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() {
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 / osc.frag
Last active Nov 20, 2017
OSC example for VEDA
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() {
View video.frag
precision mediump float;
uniform float time;
uniform vec2 resolution;
uniform sampler2D video1;
uniform sampler2D video2;
uniform sampler2D video3;
vec2 rotate(in vec2 p, in float t) {
return mat2(
sin(t), cos(t),
View particle.frag
/*{
"pixelRatio": 0.5,
"vertexCount": 1000,
"vertexMode": "TRI_FAN",
"PASSES": [{
"TARGET": "renderBuffer",
"vs": "./particle.vert",
}, {
}],
}*/
@fand
fand / glsl.md
Created Jul 30, 2017
はじめようGLSL
View glsl.md
@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": {
You can’t perform that action at this time.