/* // foward OSC from TidalCycles var addr = NetAddr.new("127.0.0.1", 3333); OSCFunc({ |msg, time, tidalAddr| var latency = time - Main.elapsedTime; msg = msg ++ ["time", time, "latency", latency]; // msg.postln; addr.sendBundle(latency, msg) }, '/play2').fix; */
View mymarp.css
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
/* @theme mymarp */ | |
@import 'default'; | |
section { | |
font-family: 'Noto Sans CJK JP' !important; | |
} | |
code { | |
font-family: 'SF Mono', 'Consolas', 'Noto Sans CJK JP' !important; |
View settings.json
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false | |
}, |
View BigGanGenVideo.py
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
# Generating Video with BigGAN. | |
# Based on tensorflow hub code. | |
# https://www.tensorflow.org/hub/tutorials/biggan_generation_with_tf_hub | |
import sys | |
args = sys.argv | |
if len(args) <= 5: | |
print('usage: python BigGanGenMovie.py num_samples num_interps length truncation outputfile') | |
print('example: python BigGanGenMovie.py 1 60 2 0.2 out.mp4') |
View MyEmacsKeymap.ahk
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; MyEmacsKeymap.ahk | |
;; - An AutoHotkey script to simulate Emacs keybindings on Windows | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Settings for testing | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; enable warning | |
;#Warn All, MsgBox |
View settings.json
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{00000000-0000-0000-ba88-000000000002}", | |
"copyOnSelect": false, | |
"copyFormatting": false, | |
"profiles": | |
{ | |
"defaults": | |
{ | |
"closeOnExit" : "always", |
View sketch.js
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
//p5.js-svg file export test | |
function setup() { | |
createCanvas(1280, 720, SVG); | |
strokeWeight(0.4); | |
stroke(0); | |
noFill(); | |
} | |
function draw() { |
View ParticleVec3.cpp
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
#include "ParticleVec3.h" | |
ParticleVec3::ParticleVec3() { | |
location = glm::vec3(ofGetWidth()/2, ofGetHeight()/2, 0); | |
velocity = glm::vec3(ofRandom(-5, 5), ofRandom(-5, 5), ofRandom(-5, 5)); | |
isLive = true; | |
lifeTime = 10.0; //lifetime in sec | |
initTime = ofGetElapsedTimef(); | |
} |
View setup.scd
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
// foward OSC from TidalCycles | |
var addr = NetAddr.new("127.0.0.1", 3333); | |
OSCFunc({ |msg, time, tidalAddr| | |
var latency = time - Main.elapsedTime; | |
msg = msg ++ ["time", time, "latency", latency]; | |
// msg.postln; | |
addr.sendBundle(latency, msg) | |
}, '/play2').fix; | |
View settings.json
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
"profiles": | |
[ | |
{ | |
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", | |
"hidden": false, | |
"name": "Ubuntu", | |
"commandline": "wsl.exe", |