Skip to content

Instantly share code, notes, and snippets.

View untrusted-lvl15-solution.js
/**************************
* exceptionalCrossing.js *
**************************
*
* Sorry, old friend, but I'm afraid I can't share
* co-authorship on this paper. You've done a very
* good job getting this Algorithm for me. The bit
* with the keys was especially clever! I wouldn't
* have thought of it myself. But then, of course,
* that's why you were here in the first place.
View untrusted-lvl17-solution.js
/***************
* pointers.js *
***************
*
* You! How are you still alive?
*
* Well, no matter. Good luck getting through this
* maze of rooms - you'll never see me or the Algorithm again!
*/
View untrusted-lvl3-solution.js
/************************
* validationEngaged.js *
************************
*
* They're really on to us now! The validateLevel function
* has been activated to enforce constraints on what you can
* do. In this case, you're not allowed to remove any blocks.
*
* They're doing all they can to keep you here. But you
* can still outsmart them.
View untrusted-lvl6-solution.js
/****************
* drones101.js *
****************
*
* Do you remember, my dear Professor, a certain introductory
* computational rationality class you taught long ago? Assignment
* #2, behavior functions of autonomous agents? I remember that one
* fondly - but attack drones are so much easier to reason about
* when they're not staring you in the face, I would imagine!
View untrusted-lvl20-solution.js
/*****************
* bossFight.js *
*****************
*
* NO FARTHER, DR. EVAL!!!!
* YOU WILL NOT GET OUT OF HERE ALIVE!!!!
* IT'S TIME YOU SEE MY TRUE FORM!!!!
* FACE MY ROBOT WRATH!!!!!
*/
View gist:ff53d3d3f9ee0e3efb1ab05a6c6d1679
let demande = Number(prompt('Quel âge as tu ?'))
if (demande < 99){
alert('Tu es née en ' + 2018 - demande)
} else {
alert(" Pas compris !")
}
View untrusted-lvl12-solution.js
/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function startLevel(map) {
// Hint: you can press R or 5 to "rest" and not move the
View gist:467056cbbbe6541cfc0bb0da64e6c53e
const app = Consumer.create({
queueUrl: process.env.QUEUE_URL,
sqs: new AWS.SQS(),
handleMessage: async message => {
try {
const body = JSON.parse(message.Body)
const { realmId, event } = body
console.log(body)
} catch (err) {
@chicagowebmanagement
chicagowebmanagement / itlives.py
Created Mar 25, 2019
A dictionary with A list, a tuple and a dictionary
View itlives.py
listy={"Siblings":["Patrick", "Steve", "John", "Ricardo","Melissa"]}
tuply={"1532 House Location":("42.014078", "-87.669435")}
dicty={"Address":{"county":"Cook", "planet":"Earth","galaxy":"Milky Way"}}
print(listy)
print(tuply)
print(dicty)
View untrusted-lvl12-solution.js
/*
* robotNav.js
*
* The green key is located in a slightly more
* complicated room. You'll need to get the robot
* past these obstacles.
*/
function startLevel(map) {
// Hint: you can press R or 5 to "rest" and not move the
You can’t perform that action at this time.