Skip to content

Instantly share code, notes, and snippets.

'use strict';
const Alexa = require("alexa-sdk");
exports.handler = function(event, context, callback) {
const alexa = Alexa.handler(event, context);
alexa.registerHandlers(handlers);
alexa.execute();
};
const handlers = {
{
"intents": [
{
"intent": "HelloWithName",
"slots": [
{
"name": "Name",
"type": "AMAZON.US_FIRST_NAME "
}
]
/* eslint-disable func-names */
/* eslint-disable dot-notation */
/* eslint-disable new-cap */
/* eslint quote-props: ['error', 'consistent']*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports en-US lauguage.
* The Intent Schema, Custom Slots and Sample Utterances for this skill, as well
* as testing instructions are located at https://github.com/alexa/skill-sample-nodejs-trivia
> x <- 1:10
> x
[1] 1 2 3 4 5 6 7 8 9 10
> dim(x) <- c(2,5)
> x
[,1] [,2] [,3] [,4] [,5]
[1,] 1 3 5 7 9
[2,] 2 4 6 8 10
@ageldama
ageldama / postgres_queries_and_commands.sql
Created August 18, 2017 00:44 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(query_start, clock_timestamp()), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(query_start, clock_timestamp()), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@ageldama
ageldama / foo.json
Created July 4, 2017 00:14
vscode sync settings
'foo'
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@ageldama
ageldama / connect-cx-oracle.py
Last active August 24, 2019 08:42
pip with oracle-instant-client-sdk
# http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/oow10/python_db/python_db.htm
import cx_Oracle
con = cx_Oracle.connect('pythonhol/welcome@localhost/orcl')
print con.version
con.close()
@ageldama
ageldama / cx_oracle_instructions.md
Created June 15, 2017 02:33 — forked from thom-nic/cx_oracle_instructions.md
Installing CX Oracle for Python & Mac OS X. Instructions exist around the web, but they seem to be piecemeal and incomplete.
curl http://pod.ssenhosting.com/rss/rrojia2/rrojia2.xml