Skip to content

Instantly share code, notes, and snippets.

@DavidBurela
Created February 28, 2019 04:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidBurela/b6d32d9da7ffb6fb3ccbd2ca787fddaa to your computer and use it in GitHub Desktop.
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
// 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