- Python on system path (or a way to set up localhost)
- Knowledge of how to use system path variable
- Basic CLI knowledge
- Get ngrok
- Add ngrok to your system path (or bin folder on *NIX)
const fs = require('fs'); | |
// data: output of learnFromTopic or learnFromSubforum | |
// initial: initial word | |
function simulate(data, initial) { | |
let terminate = false; | |
let generatedWords = [initial]; | |
if (!data[initial]) return; | |
while (!terminate) { | |
const prevWord = generatedWords[generatedWords.length - 1]; |
package main | |
import ( | |
"os" | |
"fmt" | |
"os/exec" | |
"io/ioutil" | |
) | |
func main() { |
package main | |
import ( | |
"os" | |
"fmt" | |
"bufio" | |
"regexp" | |
"strings" | |
"net/http" | |
"encoding/json" |