- Clone the prat repo (
git clone [YOUR URL HERE]) - Get pratbox from someone and move it to your prat directory
- Inside your prat directory, run
vagrant init prat pratbox
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
| /* CONFIGURATION STARTS HERE */ | |
| /* Step 1: enter your domain name like fruitionsite.com */ | |
| const MY_DOMAIN = "example.org" | |
| /* | |
| * Step 2: enter your URL slug to page ID mapping | |
| * The key on the left is the slug (without the slash) | |
| * The value on the right is the Notion page ID | |
| */ |
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
| const express = require('express'); | |
| const http = require('http'); | |
| const port = 5000; | |
| const app = express(); | |
| const server = http.Server(app); | |
| const io = require('socket.io')(server); | |
| io.on('connection', socket => { | |
| console.log('New client connected'); |
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
| import React, { useEffect, useState } from 'react'; | |
| import socketIOClient from 'socket.io-client'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| function App() { | |
| const [socket, setSocket] = useState(null); | |
| useEffect(() => { | |
| setSocket(socketIOClient('http://localhost:5000')); |
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
| let count = 0; | |
| setInterval(() => io.sockets.emit(`Hello ${++count}`), 1000); |
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
| import React, { useEffect, useState } from 'react'; | |
| import socketIOClient from 'socket.io-client'; | |
| import logo from './logo.svg'; | |
| import './App.css'; | |
| function App() { | |
| const [socket, setSocket] = useState(null); | |
| useEffect(() => { | |
| setSocket(socketIOClient('http://localhost:5000')); |
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
| const express = require('express'); | |
| const http = require('http'); | |
| const port = 5000; | |
| const app = express(); | |
| const server = http.createServer(app); | |
| const io = require('socket.io')(server); | |
| io.on('connection', socket => { | |
| console.log('New client connected'); |
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
| Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write. | |
| Ruby is a dynamic, open source programming | |
| language with a focus on simplicity and | |
| productivity. It has an elegant syntax that is | |
| natural to read and easy to write. |
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
| U1,Amsterdam,Barcelona,London,Prague | |
| U2,Shanghai,Hong Kong,Moscow,Sydney,Melbourne | |
| U3,London,Boston,Amsterdam,Madrid | |
| U4,Barcelona,Prague,London,Sydney,Moscow | |
| Amsterdam,Barcelona,London,Prague |
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
| { | |
| "encrypted_user_id": "1xg8iTAXcUQRdmt0PMA9LjVexYj16gsOkXe9tB6SUTuDDTKcdOju4sp2K8Iz3Csu", | |
| "requirement": "all", | |
| "groups": { | |
| "basic": { | |
| "type": "all", | |
| "items": [ | |
| { | |
| "id": "confirmed_email", | |
| "status": "default", |
NewerOlder