Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Assume you've got homebrew installed.
Download the following files from Oracle
| '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 |
| -- 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%' |
| '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 -> |
| # 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() |
Portions taken from http://www.cs.utexas.edu/~mitra/csSpring2011/cs327/cx_mac.html (in case that link ever dies.)
Assume you've got homebrew installed.
Download the following files from Oracle
| curl http://pod.ssenhosting.com/rss/rrojia2/rrojia2.xml |