Skip to content

Instantly share code, notes, and snippets.

View taslater's full-sized avatar

Thomas Slater taslater

View GitHub Profile
@taslater
taslater / wordle_solns.md
Last active March 28, 2022 22:03
Finding "secrets" in the Wordle source code

Spoiling Wordle Doesn't Matter

Before I begin discussing how to spoil Wordle, the most important to thing to know is that spoiling Wordle doesn't matter. Because Wordle is so popular, it is easy to find the daily solution online. The game is extremely popular despite the fact almost anyone can easily cheat. Josh Wardle, the creator of Wordle, pointed out on the Syntax podcast that newspapers often just print crossword solutions upside down next to the puzzle. The solution only needs to be sufficiently hidden from the user for them to enjoy the mystery while playing!

This "flaw" makes Wordle better

It's easy to spoil the solution for yourself and confirm that the "secret" is right there in your browser:

  1. Open the browser console on the website
  2. Enter (new this.wordle.bundle.GameApp()).solution
@taslater
taslater / timeseries_cnn.py
Created February 20, 2018 15:50 — forked from jkleint/timeseries_cnn.py
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
#!/usr/bin/env python
"""
Example of using Keras to implement a 1D convolutional neural network (CNN) for timeseries prediction.
"""
from __future__ import print_function, division
import numpy as np
from keras.layers import Convolution1D, Dense, MaxPooling1D, Flatten
from keras.models import Sequential