Skip to content

Instantly share code, notes, and snippets.

View TracyGJG's full-sized avatar

TGJ Gilmore TracyGJG

  • Somerset, UK
View GitHub Profile
@TracyGJG
TracyGJG / WorstHelloWorld.html
Last active March 20, 2023 19:20
Worst Hello World ever
<script>
[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((!![]+[])[+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+([][[]]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+!+[]]+(+[![]]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+!+[]]]+(!![]+[])[!+[]+!+[]+!+[]]+(+(!+[]+!+[]+!+[]+[+!+[]]))[(!![]+[])[+[]]+(!![]+[][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([]+[])[([][(![]+[])[+[]]+(![]+[])[!+[]+!+[]]+(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!
@TracyGJG
TracyGJG / index.html
Last active February 28, 2023 17:28
SIMD
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@TracyGJG
TracyGJG / pokerStats.js
Last active February 16, 2023 08:28
Poker stats calculator
const tests = [
[],
[0],
[0, 0],
[0, 1, 2, 3, 5, 1, 2, 5, 8, 5, 1],
[5, 5, 5, 5],
[5, 5, 5, 8],
[5, 5, 8, 8],
[5, 5, 8, 13],
[5, 8, 8, 8],
@TracyGJG
TracyGJG / presentDateTime.js
Created February 28, 2023 17:25
Date-Time presentation formatter
function presentDateTime(dateObjectOrString) {
const pDateTime = (dateObjectOrString instanceof Date) ? dateObjectOrString : new Date(dateObjectOrString);
const pYear = nonZeroSuppression(pDateTime.getFullYear(), 4);
const pMonth = nonZeroSuppression(pDateTime.getMonth() + 1);
const pDay = nonZeroSuppression(pDateTime.getDate());
const pHours = nonZeroSuppression(pDateTime.getHours());
const pMinutes = nonZeroSuppression(pDateTime.getMinutes());
return `${pYear}-${pMonth}-${pDay}, ${pHours}:${pMinutes}`;
function nonZeroSuppression(num, width = 2) {