Skip to content

Instantly share code, notes, and snippets.

View juanmirod's full-sized avatar

Juan Miguel Rodriguez Ceron juanmirod

View GitHub Profile
@juanmirod
juanmirod / chatbot_server.py
Created June 18, 2018 14:21 — forked from mmxmb/chatbot_server.py
Get websocket_server.py from https://github.com/Pithikos/python-websocket-server . Can test the chatbot using client.html from the same repo. Open client.html in multiple windows to simulate several clients talking to a single bot running on a single thread. To create custom client_id, edit id assignments on line 136 of websocket_server.py.
from rasa_core.agent import Agent
import os
import argparse
from websocket_server import WebsocketServer # taken from https://github.com/Pithikos/python-websocket-server
# CONSTANTS
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Ignore TF CPU instructions warning; see https://stackoverflow.com/questions/47068709/your-cpu-supports-instructions-that-this-tensorflow-binary-was-not-compiled-to-u
HOST = '0.0.0.0' # accept any host
PORT = 9001
@juanmirod
juanmirod / music.md
Created December 8, 2017 22:21 — forked from staltz/music.md
coding music

Not for everyone. Each programmer has their own appreciation of what is good coding music.

For when I need to think deep, debug something, or design

(From most influential to least)

@juanmirod
juanmirod / ngrxintro.md
Last active March 29, 2017 08:18 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

/**
* Juan's leaving card: http://is.gd/juan_leaving
*/
(function() {
'use strict';
var message = [
' gg ',
' dP8, ',
' dP Yb ',