Skip to content

Instantly share code, notes, and snippets.

Moritz Strube gittimos

Block or report user

Report or block gittimos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
gittimos / env.js
Created May 22, 2017
Load environment variables stored in .env for node.js applications
View env.js
const env = require('node-env-file');
env(__dirname + '/.env');
// put .env in .gitignore
gittimos / Watson.js
Created May 15, 2017
Using the Watson API with the Node.js SDK
View Watson.js
var watson = require('watson-developer-cloud');
// username and password of the service
// see
var conversation = watson.conversation({
username: process.env.WATSON_USERNAME,
password: process.env.WATSON_PASSWORD,
version: 'v1',
version_date: '2017-04-21'
gittimos / lex.js
Last active Oct 1, 2019
Using the Lex postText API with AWS Node.js SDK
View lex.js
var AWS = require('aws-sdk');
AWS.config.update({region: 'us-east-1'});
var lexruntime = new AWS.LexRuntime();
var params = {
botAlias: '$LATEST', /* required, has to be '$LATEST' */
botName: 'BOT', /* required, the name of you bot */
inputText: 'TEXT', /* required, your text */
userId: 'USER', /* required, arbitrary identifier */
gittimos / index.js
Last active Feb 22, 2019
Alexa skills kit (ASK): remove SSML for speech output in cards
View index.js
var strip = require('./strip.js');
this.emit(":askWithCard", speechOutput, repromptText, this.t("MESSAGE"), strip.stripTags(repromptText));
gittimos / blink-an-led.ino
Created Feb 12, 2017
Publish Particle functions
View blink-an-led.ino
gittimos / api.js
Last active May 13, 2017
Using the AWS Lex API with the AWS SDK
View api.js
let AWS = require('aws-sdk')
let credentials = new AWS.SharedIniFileCredentials({profile: 'default'});
AWS.config.credentials = credentials;
AWS.config.update({region: 'us-east-1'});
let lexruntime = new AWS.LexRuntime({
apiVersion: '2016-11-28',
gittimos / lex-policy.json
Last active Feb 9, 2017
Custom policy for using the AWS Lex API
View lex-policy.json
"Version": "2012-10-17",
"Statement": [
"Action": [
"Effect": "Allow",
You can’t perform that action at this time.