Skip to content

Instantly share code, notes, and snippets.

View Truemedia's full-sized avatar

Wade Penistone Truemedia

View GitHub Profile
@Truemedia
Truemedia / gist:df9a6ea005b087a283e0753cf14e18b4
Created May 25, 2019 10:42
Rasa X - Raspberry Pi install
printf '[global]\ndownload_cache = ~/.cache/pip\n' >> ~/.pip/pip.conf
pip3 --no-cache-dir install tensorflow~=1.13.0
pip3 install rasa-x --extra-index-url https://pypi.rasa.com/simple

Bot framework aimed at multiple service using high level NLP techniques

Why a framework? (LIMITATIONS)

  • Markup, Speech assistancts like Alexa use SSML with some custom tags where as text chat services like slack use custom markdown. There isn't any library currently to write a template that works for all.
  • Service Api's, There is no consolidated API for the services I want to use. Why write code more than once when it's doing the same thing on a different services?
  • Unintellgient, Most chat bot architectures are still using conventions which are outdated and clunky, where as people want natural conversations with smart AI. Even voice assistants are lacking in terms of the leg work needed to recognise a wide spectrum of conversation scenarios which people would want to essentially to perform the same task.
  • Lack of personality, It's nice to have a conversation with something that seems somewhat intellgent and has a personality you can connect with on a personal level.
@Truemedia
Truemedia / gulpfile
Last active August 29, 2015 14:23
Schema scraper
var gulp = require('gulp'),
gutil = require('gulp-util'),
cheerio = require('gulp-cheerio'),
rm = require('gulp-rm'),
//jsonld = require('jsonld'),
fs = require('fs'),
changeCase = require('change-case'),
moment = require('moment'),
_ = require('underscore'),
jsonpatch = require('jsonpatch'),
@Truemedia
Truemedia / gist:b939463bf550d56acd10
Created May 20, 2015 19:53
Nice laravel package README

Project name - Package package

Package name does this, that, and other stuff.

Installation

Install via composer in the root directory of a Laravel 5 application

composer require project/package:dev-master
@Truemedia
Truemedia / gist:10a4a89224568f8c7dd4
Created December 16, 2014 21:27
Convert directory path to css class names for images using nodeJS
var path = '/dir1/dir2/img_folder/dir3/dir5/imagename.png';
var path_arr = path.split('/');
var img_dir = 'img_folder';
var img_ext = '.png';
var img_index = path_arr.indexOf(img_dir);
var img_dirs = path_arr.splice( (img_index + 1 ) );
var image = img_dirs.pop().replace('.png', '');
var css_class = '.image-' + img_dirs.concat(image).join('-');
@Truemedia
Truemedia / castleford.geojson
Last active December 23, 2015 22:49
GeoJSON file with a line drawn from Coords A-B
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.