Easter eggs (ask.chaipat.cc)
Component
The easter eggs in src/eggs.js are a few queries that do something other than search, the way some search engines hide them. Each is matched against the whole query, so a real question that happens to contain the words still gets a real answer. They are plain JavaScript.
Some move the page: it can tilt, shake or blink. Two play: a spinning ASCII donut after donut.c, and a game of 2048 that his solver, ported to JavaScript, can play for you. Some play: a coin, dice of any size, the answer to everything. Some are jokes about search itself. A few know about him: "hello world" prints Hello World in every programming language his work uses, counted from the graph; "happy birthday" throws confetti and says how early or late you are for the site's own birthday. Which queries they are is left for visitors to find; asking the site whether it has easter eggs gives a few hints.
In the knowledge graph
Easter eggs and the 2 things it is linked to. Open any dot for its page, or explore it in the full graph.
As data
Everything on this page is read from triples in the knowledge graph. These are the 9 it states about Easter eggs, and 1 more its ontology implies; the console runs SPARQL over the whole graph, here in your browser.
@prefix id: <https://ask.chaipat.cc/id/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix cj: <https://ask.chaipat.cc/ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . id:SiteEggs a cj:Component ; rdfs:label "Easter eggs (ask.chaipat.cc)" ; cj:shortLabel "Easter eggs" ; cj:componentOf id:ThisSite ; cj:sourceFile "src/eggs.js" ; cj:uses id:JavaScript ; cj:description "A handful of queries that do something other than search, the way some search engines hide them." ; cj:article "https://ask.chaipat.cc/wiki/SiteEggs"^^xsd:anyURI ; cj:implementationDigest "sha256:5351977cc91929b823c42ba14b14168c4c6ce433c8b3c8ccdd63582264a2c945" .