Skip to content

Instantly share code, notes, and snippets.

View emiax's full-sized avatar

Emil Axelsson emiax

View GitHub Profile
@emiax
emiax / react-setup
Last active September 3, 2019 16:31
LiU React Setup
# Go to the folder where you want to install things
cd "C:\Users\" + $env.UserName
# Create a new folder for the labs and enter it
mkdir tnm040-labs
cd tnm040-labs
# Download
wget "https://nodejs.org/dist/v10.16.3/node-v10.16.3-win-x64.zip" -outfile "node.zip"
Expand-Archive ./node.zip -DestinationPath ./node
@emiax
emiax / openspace-socket-api-example.js
Last active September 17, 2018 09:47
openspace-socket-api-example
const net = require('net');
const connection = {
connect: (onConnected) => {
this._client = net.createConnection({ port: 8000 }, () => {
console.log('Connected to OpenSpace backend');
onConnected();
});
this._client.on('data', (data) => {