Skip to content

Instantly share code, notes, and snippets.

View fand's full-sized avatar
💭
🔪

AMAGI / Jun Yuri fand

💭
🔪
View GitHub Profile
@fand
fand / PowerShell_profile.ps1
Last active March 6, 2020 09:39
My Windows Settings
# Aliases
Set-Alias open Invoke-Item
Set-Alias g git
# Set l and ls alias to use the new Get-ChildItemColor cmdlets
Import-Module Get-ChildItemColor
Set-Alias l Get-ChildItemColor -Option AllScope
Set-Alias ls Get-ChildItemColorFormatWide -Option AllScope
# oh-my-posh
@fand
fand / config.py
Last active March 6, 2020 07:51
keyhac config for amagi
import sys
import os
import datetime
import pyauto
from keyhac import *
def configure(keymap):
keymap.editor = "notepad.exe"
keymap.setFont("MS Gothic", 12)
@fand
fand / cloudSettings
Last active March 10, 2020 01:27
vscode for win
{"lastUpload":"2020-03-10T01:27:03.663Z","extensionVersion":"v3.4.3"}
@fand
fand / foo.tidal
Created April 6, 2018 12:29
tidal midi test
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 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,
};
@fand
fand / .anylintrc
Created December 22, 2017 08:01
anylint sample
{
".pl": {
"~/bin/anylint/blank.pl": 2,
},
}
/*{ "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 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 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() {