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
[ | |
{ | |
"triggers": [ | |
"night", | |
"good night" | |
], | |
"replies": [ | |
{ | |
"reply": "To you...", | |
"type": "text" |
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 <SoftwareSerial.h> | |
SoftwareSerial esp8266(2, 3); | |
#define serialCommunicationSpeed 9600 | |
#define DEBUG true | |
const int lightPin = 5; | |
//---------- Vars for commands ---------- | |
int lightPower = 0; |
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
const http = require("http") | |
const express = require("express"); | |
const app = express(); | |
const socketIo = require("socket.io"); | |
const fs = require("fs"); | |
const server = http.Server(app).listen(8080); | |
const io = socketIo(server); | |
const clients = {}; |
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
const url = window.location.origin; | |
let socket = io.connect(url); | |
var myTurn = true; | |
var symbol; | |
function getBoardState() { | |
var obj = {}; | |
/* We are creating an object where each attribute corresponds |
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 | |
#Screen 1 | |
cd /home/<user>/<folder1> | |
sudo -u <user> screen -dmS "Screen_name_1" "command1" "arguments1" | |
#Screen 2 | |
cd /home/<user>/<folder2> | |
sudo -u <user> screen -dmS "Screen_name_2" "command2" "arguments2" |
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
Action | Command | |
---|---|---|
create screen | screen | |
create screen if inside a screen | [Ctrl+a][c] | |
detach screen | [Ctrl+a][d] | |
kill screen | [Ctrl+a][k] | |
rename screen | [Ctrl+a][:] then type 'sessionname <name_you_want>' | |
screen list | screen -ls | |
resume screen | screen -r <screen_name> |