Skip to content

Instantly share code, notes, and snippets.

View i-Robi's full-sized avatar

Sébastien Robaszkiewicz (Robi) i-Robi

View GitHub Profile
@i-Robi
i-Robi / notes-frequencies.json
Last active July 1, 2024 22:03
Note-frequency values
{
"C0": 16.35,
"C#0": 17.32,
"Db0": 17.32,
"D0": 18.35,
"D#0": 19.45,
"Eb0": 19.45,
"E0": 20.60,
"F0": 21.83,
"F#0": 23.12,

Creating a simple Node.js - Express - socket.io app

Installing packages

Node.js and npm

Dowload Node.js from their website and install the package. npm should be in there.

Express

@i-Robi
i-Robi / clients-vs-admin.js
Last active October 13, 2022 12:55
Separating clients from the admin panel with socket.io and namespaces
// Server
var admin = io.of('/admin'),
client = io.of('');
admin.on('connection', function (socket) {
socket.on('message', function(m) {
console.log(m);
});