This file contains hidden or 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
<!-- in public folder --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0> | |
<style> body {padding: 0; margin: 0;} </style> | |
<script src="p5.min.js"></script> | |
<script src="/socket.io/socket.io.js"></script> | |
<!-- <script src="../addons/p5.dom.min.js"></script> --> | |
<!-- <script src="../addons/p5.sound.min.js"></script> --> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Express Demo</title> | |
</head> | |
<body> | |
Served by <em>Express™</em> | |
<img src="hacker.jpg" width=100> | |
<!-- <a href="some-page">Go to some page!</a> --> | |
<form method="post" action="/contact"> |
This file contains hidden or 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
var osc = require('node-osc'); | |
var client = new osc.Client('149.31.122.172', 1234); | |
// /1/xy | |
// /1/fader1 | |
// /1/fader2 | |
// /1/fader3 | |
// client.send("/1/fader1", 100); |
This file contains hidden or 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
var osc = require('node-osc'); | |
var client = new osc.Client('127.0.0.1', 3333); | |
client.send('/paddle-position', 90, function () { | |
client.kill(); | |
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
(ns nasser.particles) | |
(defn new-particle | |
([x y vx vy] {::x x ::y y ::vx vx ::vy vy}) | |
([x y] (new-particle x y 0 0))) | |
(defn particles-at-origin [n] | |
(repeat n (new-particle 0 0))) | |
(defn random-particle [] |