-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhackathon.js
More file actions
85 lines (70 loc) · 1.79 KB
/
hackathon.js
File metadata and controls
85 lines (70 loc) · 1.79 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// --- #1 ---
let plan = hackathon.scope();
let reality = plan * 0.3;
let demo = reality + confidence++;
// --- #2 ---
if (idea.isStupid() && idea.worksAnyway()) {
return "ship it";
}
// --- #3 ---
const hackathonTeam = {
designer: "also codes",
developer: "also designs",
presenter: "was asleep 5 min ago",
wildcard: "joined 20 min ago, already shipping"
};
// --- #4 ---
function hackathon(team) {
let sleep = null;
let ego = false;
let snacks = Infinity;
return team.build(something.amazing);
}
// --- #5 ---
while (coffee.level > 0) {
hackathon.ship();
}
// TODO: handle empty coffee edge case
// UPDATE: there is no edge case. we simply stop.
// --- #6 ---
while (!finished) {
build();
break_things();
learn();
repeat();
}
// --- #7 --- by jarodm
var dev = new GlideRecord('sn_dev');
dev.addQuery('caffeine_level=0');
dev.query();
while (dev.next()) {
caffeine_intake();
}
// --- #8 --- by Claude
const hackathonTimeline = {
"hour 1": "this will change everything",
"hour 5": "ok slight pivot",
"hour 11": "what if we just make it a chatbot",
"hour 12": "demo in 5 min, it's a chatbot now"
};
// --- #9 --- by Claude
try {
livDemo();
} catch (e) {
presenter.say("so if you IMAGINE that working...");
audience.nod(sympathetically);
}
// --- #10 --- by Jonathan Sandoval
const squad = ['Earl', 'Lauren', 'Kristy ', 'Laszlo','Travis','Sujan'];
gs.info('📟 INITIALIZING HACKATHON BOOT SEQUENCE...');
squad.forEach(dev => {
let roster = new GlideRecord('x_snc_hackathon_roster');
roster.initialize();
roster.hacker_handle = handle;
roster.status = 'ready';
});
if (roster.status = 'ready') {
gs.info('🔥 Squad assembled. START HACKING!');
} else {
gs.warn('⚠️ Missing caffeine or teammates.');
}