This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const net = require('net'); | |
const dgram = require('dgram'); | |
if (process.argv.length !== 4) { | |
console.error(` | |
Usage: | |
node tcp2udp.js <TCP_SRC_PORT> <UDP_DST_PORT> | |
`); | |
process.exit(-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# .npmを作成 | |
if [ ! -e .npm ]; then | |
mkdir .npm | |
fi | |
# npm本体をインストール | |
NPM_VERSION=$(echo $1 || cat .npm-version || npm -v) | |
if [ ! NPM_VERSION = $(npm -v) ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/SurfaceShadowCaster" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_Cutout ("Cutout", Range(0, 1)) = 0.5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*{ | |
IMPORTED: { | |
img: { PATH: 'shit.jpg' }, | |
}, | |
}*/ | |
precision highp float; | |
uniform float time; | |
uniform vec2 resolution; | |
uniform sampler2D img; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/exec" | |
"path/filepath" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*{ "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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iframe以外のHTML文字列を禁止する。 | |
// remark-strip-htmlを参考にした。 | |
const IS_ATTR_ALLOWED = { | |
src: true, | |
frameborder: true, | |
height: true, | |
width: true, | |
}; |