-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.js
66 lines (64 loc) · 2.29 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
var destupidify = require("destupidify");
function whatIsARandomItemFromTheCollection(collection) {
return collection[Math.floor(Math.random() * collection.length)];
}
module.exports = {
doesItEqualThree: function(input) {
if (input == 3) {
return destupidify.destupidifyAffirmativeVal("yes");
} else {
return destupidify.destupidifyNegativeVal("no");
}
},
doesItEqualSeventeen: function(input) {
if (input == 17) {
return destupidify.destupidifyAffirmativeVal("yes");
} else {
return destupidify.destupidifyNegativeVal("no");
}
},
whatDoesNotContainThree: function() {
noThree = Math.floor(Math.random() * 1000000)
.toString()
.replace(/3/g, "1");
return parseInt(noThree);
},
whatDoesSeventeenEqual: function() {
return 17;
},
whatDoesSeventeenNotEqual: function() {
var notSeventeen = 0;
do {
notSeventeen = Math.floor(Math.random() * 100);
} while (notSeventeen == 17);
return notSeventeen;
},
whatDoesShibleyHaveToSay: function() {
var shibleyIsms = [
"Sorry I'm late, guys!",
"Dude! Fresh Starbucks food!!!",
"Have you guys ever thought about the implications of strong AI coming to fruition in our lifetime? Such superintelligence would not be just another technological development; it would be the most important invention ever made, and would lead to explosive progress in all scientific and technological fields, as the superintelligence would conduct research with superhuman efficiency! To the extent that ethics is a cognitive pursuit, a superintelligence could also easily surpass humans in the quality of its moral thinking!!! Fuck!",
"We're all wizards. No, seriously.",
"Right on.",
"Check out these comics!",
"I had to finger my own tomatoes"
];
return whatIsARandomItemFromTheCollection(shibleyIsms);
},
whatDoesThreeEqual: function() {
return 3;
},
whatProbablyDoesNotEqualSeventeen: function() {
return Math.floor(Math.random() * 1000 + 1);
},
whosGoingToBeTheNextPresident: function() {
var candidates = [
"Donald Trump (AKA Baby Hands)",
"John Hickenlooper",
'Bernie "Feel the Bern" Sanders',
"Joe Biden",
"Elizabeth Warren"
];
return whatIsARandomItemFromTheCollection(candidates);
}
};