Skip to content

Instantly share code, notes, and snippets.

View fand's full-sized avatar
💭
🔪

AMAGI / Jun Yuri fand

💭
🔪
View GitHub Profile
@fand
fand / console.txt
Last active May 28, 2017 06:29
npm install fails on glslify-bundle
glslify-bundle git/master
❯ npm i
npm WARN deprecated standard-format@1.6.10: standard-format is deprecated in favor of a built-in autofixer in 'standard'. Usage: standard --fix
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN lifecycle The node binary used for scripts is /Users/amagitakayosi/.anyenv/envs/nodenv/shims/node but npm is using /usr/local/Cellar/node/7.10.0/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
npm WARN prefer global node-gyp@3.6.1 should be installed with -g
> gl@2.1.5 install /Users/amagitakayosi/src/github.com/fand/glslify-bundle/node_modules/gl
> prebuild --download
@fand
fand / color.glsl
Created May 28, 2017 16:05
glslify sourcemaps test
vec3 color(in vec2 p) {
return vec3(p.x, p.y, p.x + p.y);
}
#pragma glslify: export(color)
@fand
fand / glsl.md
Created July 30, 2017 06:45
はじめようGLSL
/*{
"pixelRatio": 0.5,
"vertexCount": 1000,
"vertexMode": "TRI_FAN",
"PASSES": [{
"TARGET": "renderBuffer",
"vs": "./particle.vert",
}, {
}],
}*/
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),
@fand
fand / osc.frag
Last active November 20, 2017 07:27
OSC example for VEDA
/*{ "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() {
/*{ "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() {
@fand
fand / .anylintrc
Created December 22, 2017 08:01
anylint sample
{
".pl": {
"~/bin/anylint/blank.pl": 2,
},
}
@fand
fand / karabiner.json
Last active January 26, 2018 07:40
karabiner.json 2017/07/03
{
"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 / remark-strip-html-but-iframe.js
Created March 5, 2018 10:10
remark-strip-html-but-iframe.js
// iframe以外のHTML文字列を禁止する。
// remark-strip-htmlを参考にした。
const IS_ATTR_ALLOWED = {
src: true,
frameborder: true,
height: true,
width: true,
};