I hereby claim:
- I am lukehoban on github.
- I am lukehoban (https://keybase.io/lukehoban) on keybase.
- I have a public key ASD4eLLvv1FzudJ0r5zQmaI7z8kW4arMFQdGreow4dGXRwo
To claim this, I am signing this object:
| const cloud = require("@pulumi/cloud-aws"); | |
| const endpoint = new cloud.API("hello"); | |
| endpoint.static("/", "www"); | |
| endpoint.get("/source", (req, res) => res.json({name: "AWS"})); | |
| exports.url = endpoint.publish().url; |
| interface IHashtable | |
| { | |
| double lookup(string i); | |
| void set(string i, double d); | |
| } | |
| class Hashtable() | |
| { | |
| var o = {}; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.Serialization; | |
| using System.ServiceModel; | |
| using System.Text; | |
| using System.ServiceModel.Activation; | |
| using System.Net; | |
| using System.IO; | |
| using System.Web; |
| @@ -459,8 +466,12 @@ StatementList: | |
| | Statement { [$1]} | |
| // See 12.2 | |
| VariableStatement: | |
| - | VAR VariableDeclarationList SEMICOLON { VariableStatement(List.rev($2)) } | |
| - | VAR VariableDeclarationList { VariableStatement(List.rev($2)) } | |
| + | Type VariableDeclarationList SEMICOLON { VariableStatement([], false, $1,List.rev($2)) } | |
| + | Type VariableDeclarationList { VariableStatement([], false, $1, List.rev($2)) } | |
| + | READONLY Type VariableDeclarationList SEMICOLON { VariableStatement([], true, $2,List.rev($3)) } | |
| + | READONLY Type VariableDeclarationList { VariableStatement([], true, $2, List.rev($3)) } |
| <!DOCTYPE html> | |
| <html> | |
| <meta http-equiv="X-UA-Compatible" content="IE=9"> | |
| <head> | |
| <title>JavascriptWebClient</title> | |
| <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.5.1.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <h1>Employee Pay</h1> | |
| <br/> |
I hereby claim:
To claim this, I am signing this object:
This Gist was automatically created by Carbide, a free online programming environment.
| // A simple hello world microservice | |
| // Click "Deploy Service" to deploy this code | |
| // Service will respond to HTTP requests with a string | |
| import sleep from 'then-sleep'; | |
| export default async function (hook) { | |
| await sleep(500); | |
| hook.res.end("Hello world!"); | |
| } |
| { | |
| "version": "0.1.0", | |
| "command": "make", | |
| "isShellCommand": true, | |
| "showOutput": "silent", | |
| "args": ["install"], | |
| "osx": { | |
| "options": { | |
| "env": { | |
| "CERT": "dlv-cert" |
| var fs = require('fs'); | |
| var util = require('util'); | |
| var request = require('request'); | |
| var clientId = 'test-app'; // Can be anything | |
| var clientSecret = 'f6f0bfec08274b8790520a9079b808af'; // API key from Azure marketplace | |
| var str = 'This is a cool demo to call Microsoft text to speach service in Node.js.'; | |
| console.log('Converting from text -> speech -> text.'); |