Skip to content

Instantly share code, notes, and snippets.

@wu-lee
Last active October 10, 2017 13:29
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 wu-lee/c24afbecd330db22a4665558d4e147f1 to your computer and use it in GitHub Desktop.
Save wu-lee/c24afbecd330db22a4665558d4e147f1 to your computer and use it in GitHub Desktop.
<!DOCTYPE html5>
<html lang="en">
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Droid+Sans+Mono|Open+Sans');
body {
margin: 20px;
font: 16px 'Open Sans', sans-serif;
}
#file-boss-or-bossed-js-LC8 .pl-s,
#file-boss-or-bossed-js-LC12 .pl-s,
#file-boss-or-bossed-js-LC15 .pl-s,
#file-boss-or-bossed-js-LC19 .pl-s,
#file-boss-or-bossed-js-LC21 .pl-s,
#file-boss-or-bossed-js-LC26 .pl-s,
#file-boss-or-bossed-js-LC27 .pl-s,
#file-boss-or-bossed-js-LC28 .pl-s
{
color: orange;
}
body .gist .gist-file {
margin-bottom: 0;
border: 1px dashed #adb5bd;
border-radius: 0;
}
body .gist .gist-data {
border-bottom: none;
border-radius: 0;
background-color: #f1f3f5;
}
body .gist .blob-wrapper {
border-radius: 0;
}
body .gist .highlight {
background-color: transparent;
font-family: 'Droid Sans Mono', monospace;
font-size: 20px;
}
body .gist .highlight td {
padding: 5px 15px !important;
line-height: 0.8;
font-family: inherit;
font-size: inherit;
}
body .gist tr:first-child td {
padding-top: 15px !important;
}
body .gist tr:last-child td {
padding-bottom: 15px !important;
}
body .gist .blob-num {
color: #ced4da;
background-color: #495057;
pointer-events: none;
}
body .gist .gist-meta {
display: none;
}
</style>
</head>
<body>
<h1><a link="">/* Boss or Bossed ? */</a></h2>
<script src="https://gist.github.com/wu-lee/c24afbecd330db22a4665558d4e147f1.js"></script>
</body>
</html>
var you = require('opportunities');
var readline = require('readline');
var response = {};
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
prompt: 'OHAI> ',
});
rl.question('Do you work in digital tech?\n Y/N: ', (answer) => {
response.techworker = answer;
rl.question('Are you Co-Op curious?\n Y/N: ', (answer) => {
response.cooperative = answer;
if (response.techworker === 'Y' && response.cooperative === 'Y') {
rl.write('The digital future is cooperative!\n');
you.open({ webpage: 'https://goo.gl/nyrbKM' })
.then(() => {
you.visit({
location: 'Tontine Building, 20 Trongate, Glasgow',
from: Date.parse( '18:00 Monday 16 October 2017' ),
until: Date.parse( '20:00 Monday 16 October 2017' ),
})
.then(() => {
you.eat ("pizza");
you.drink ("beer");
you.network ("localhosts");
you.hear ("The secrets of three successful digital co-ops");
return 'Successful';
});
});
}
rl.close();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment