Skip to content

Instantly share code, notes, and snippets.

View alxngyn's full-sized avatar

Alex Nguyen alxngyn

View GitHub Profile
# importing the requests library
import requests
# defining the api-endpoint
API_ENDPOINT = "http://flappyblock.ml:3020/chats"
def lol_linus(message):
chatMessage = {
"name": "testbot",
"chat": message
@alxngyn
alxngyn / char-rnn recipes.md
Created November 28, 2016 04:00 — forked from nylki/char-rnn recipes.md
char-rnn cooking recipes

do androids dream of cooking?

The following recipes are sampled from a trained neural net. You can find the repo to train your own neural net here: https://github.com/karpathy/char-rnn Thanks to Andrej Karpathy for the great code! It's really easy to setup.

The recipes I used for training the char-rnn are from a recipe collection called ffts.com And here is the actual zipped data (uncompressed ~35 MB) I used for training.

It seems to be in a format intended to be read by a program called Meal-Master, therefore you will see those lines repeated all over:

<?php include("static/header.php"); ?>
<?php
require_once('dbConVars.php');
// Connect to the database
$dbc = mysqli_connect($DB_HOST, $DB_USER, $DB_PASSWORD, $DB_NAME);
if (isset($_POST['submit'])) {
// Grab the profile data from the POST
$userName = mysqli_real_escape_string($dbc, trim($_POST['username']));
@alxngyn
alxngyn / flavorbible2.csv
Created December 25, 2015 07:24 — forked from dhoboy/flavorbible2.csv
visualizing the flavor bible data
ingredient1 ingredient2 quality
chard anchovies heaven
chard bacon high_rec
chard basil freq_rec
chard bcheese rec