This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Sliding Santa Puzzle</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<div class="container"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Chemical Element Clock</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Escape The Matrix</title> | |
<script src="matter.min.js"></script> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const events = require('events') | |
const fs = require('fs') | |
const readline = require('readline') | |
const a2z = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] | |
const fileName = process.argv[2] | |
const varMin = [...a2z.slice(0, 13)] | |
const constMin = [...a2z.slice(0, 23)] | |
const letMin = [...a2z.slice(0, 10)] | |
const funcMin = [...a2z.slice(0, 7)] | |
const spacesAround = ['=', , '===', '=>', '+', '&&', '?', '>', '+='] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Div Invaders</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<main class="console"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@800&family=Spectral:wght@800&display=swap'); | |
:root { | |
--brick-pattern: repeating-linear-gradient(90deg, #fad79e, #fad79e 2px, #cca065 2px, #cca065 38px, #965c00 38px, #965c00 40px); | |
--brick-border-bottom: solid 1px #965c00; | |
--brick-border-top: solid 2px #fad79e; | |
--engraved-colour: #aa9668; | |
--game-bg: linear-gradient(#2487dc, #90c6ef 600px, #dfc07c 600px, #e3bc81); | |
--gold-grad: linear-gradient(yellow, gold 80%, sandybrown); | |
--red-grad: linear-gradient(pink, red 80%, darkred); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('http') | |
const fs = require('fs') | |
const path = require('path') | |
const formidable = require('formidable') | |
const static = require('node-static') | |
const fileServer = new(static.Server)('./public') | |
const hostname = '127.0.0.1' | |
const port = 4000 | |
const imgExtensions = ['.jpg', '.png', '.webp'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const socket = io(); | |
const gravity = 0.2; | |
let form, label, nameInput, joinBtn, playerName, joined, waiting, playerNames, result, resultText, playerLeaves; | |
let player, keeper, attempts, dropSpeed, ballWidth, ballX, ballShotX, ballY, ballShotY, shoot, goalie, goalieX, goalieY, checkSave; | |
const stripeData = [ | |
{colour: '#4e801c', y: 190, h: 80}, | |
{colour: '#679931', y: 270, h: 97}, | |
{colour: '#4e801c', y: 367, h: 110}, | |
{colour: '#679931', y: 477, h: 123} | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const laneXs = [-35, 0 ,35]; | |
let myCar, car1, car2, myCarX, car1X, car2X, newXs, fillColour, timer; | |
function preload() { | |
timer = loadFont('roboto.ttf'); | |
} | |
function car() { | |
return { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Pot Black</title> | |
<script src="https://cdn.jsdelivr.net/npm/p5@1.4.1/lib/p5.js"></script> | |
<style> | |
body { |
NewerOlder