Created
February 28, 2019 04:42
-
-
Save DavidBurela/b6d32d9da7ffb6fb3ccbd2ca787fddaa to your computer and use it in GitHub Desktop.
Code snippet from the Build website - I don't have any insider info about this easter egg
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
// Disclaimer: I don't have any insider info about this. I am just as interested. | |
// Text from https://www.microsoft.com/en-us/build#agenda | |
// https://img-prod-cms-rt-microsoft-com.akamaized.net/cms/api/am/imageFileData/RWtKxO | |
// Uses the `request` module from npm. | |
// Quickstart: `mkdir node && cd node && npm init -y && npm install request` | |
const request = require('request') | |
const queryString = Buffer.from('Intelligent Edge').toString('base64') | |
const endpoint = 'https://easter.azurewebsites.net/egg/edge' | |
const captains = console | |
request(`${endpoint}?key=${queryString}`, function(err, res){ | |
if(err) throw err | |
captains.log('Status Code: ' + res.statusCode) | |
captains.log('Status Message: ' + res.statusMessage + '\n') | |
captains.log('Response Body:\n\n' + res.body) | |
}) | |
console.log('\nMake It So\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment