This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
setImmediate(() => { | |
process.stdout.write(`setImmediate (after poll phase)\n`); | |
process.nextTick(() => { | |
process.stdout.write(`nextTick (nested registered in setImmediate())\n`); | |
}); | |
}); | |
setTimeout(() => { | |
process.stdout.write(`setTimeout (timers phase)\n`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends ../layout/index | |
block content | |
#speakerDetail.container | |
.row | |
.col-sm-8 | |
article.speakerslist | |
.container | |
.row | |
.col-sm-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends ../layout/index | |
block content | |
#speakerList.container | |
.row | |
.col-sm-8 | |
article.speakerslist | |
.container | |
.row | |
.col-sm-8 | |
h3.speakerslist-title Art in Full Bloom |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header | |
.jumbotron.hidden-xs | |
// jumbotron | |
nav.navbar.navbar-inverse | |
.container | |
.navbar-header | |
button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#navbar-collapse', aria-expanded='false') | |
span.sr-only Toggle navigation | |
span.icon-bar | |
span.icon-bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
Tracer, | |
BatchRecorder, | |
ExplicitContext, | |
jsonEncoder: { JSON_V2 } | |
} = require('zipkin'); | |
const zipkinMiddleware = require('zipkin-instrumentation-express').expressMiddleware; | |
const wrapRequest = require('zipkin-instrumentation-request'); | |
const request = require('request'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports.postProblemDetail = async (body, callback) => { | |
console.log(body); | |
if (body.type === "validate") { | |
return callback(null, success(say("Would you like to notify the person on call?", 'Notify Daniel'))); | |
} | |
if (body.type === "custom") { | |
return callback(null, success(say(`Notified Daniel`))); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The name of the service | |
service: dynatrace-lambda-sample | |
provider: | |
name: aws | |
# The node version to use | |
runtime: nodejs8.10 | |
functions: | |
hello: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
module.exports.handler = async (event, context, callback) => { | |
// Asynchronous HTTP GET | |
// In real projects, you want to add some error handling here. | |
const res = axios.get('https://api.weather.gov/points/39.7456,-97.0892'); | |
const response = { | |
statusCode: 200, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The name of the service | |
service: dynatrace-lambda-sample | |
provider: | |
name: aws | |
# The node version to use | |
runtime: nodejs8.10 | |
functions: | |
hello: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require('axios'); | |
module.exports.handler = async (event, context, callback) => { | |
// Asynchronous HTTP GET | |
// In real projects, you want to add some error handling here. | |
const res = await axios.get('https://api.weather.gov/points/39.7456,-97.0892'); | |
const response = { | |
statusCode: 200, |
NewerOlder