Skip to content

Instantly share code, notes, and snippets.

@scholtes
scholtes / readme.md
Created January 28, 2022 01:29
Wordle dictionary

Wordle dictionary

Wordle is a web browser game that you can play at this link. You get 6 chances to guess a single 5 letter word and there is only 1 word per day.

This gist contains the contents of the dictionary Wordle uses as of January 27th, 2022. Wordle actually uses two dictionaries:

  • La words that can be guessed and which can be the word of the day
  • Ta words that can be guessed but are never selected as the word of the day
@scholtes
scholtes / farckle.py
Created August 9, 2021 09:00
farckle.py
def is_farcle(dice):
return not (
1 in dice
or 5 in dice
or has_3_of_kind(dice)
or has_1_thru_6(dice)
)
def has_3_of_kind(dice):
for i in [1,2,3,4,5,6]:
from sympy import prime
from math import tan, pi
from random import random
def chug_primes():
max = 0
for i in range(1,1000000000000):
p = prime(i)
v = tan(p)/p
if v > max:
@scholtes
scholtes / fril.xml
Last active September 23, 2016 16:37
Syntax highlighting for Fril in Notepad++
<!-- TO INSTALL -->
<!-- 1. Download this file, make sure it is "fril.xml", -->
<!-- exactly (with the correct .xlm extension) -->
<!-- 2. In your Notepad++ menu, select: -->
<!-- Language -> Define your language -->
<!-- 3. In the dialog that pops up, press the "import" button -->
<!-- Browse for the "fril.xml" file and select it -->
<!-- 4. RESTART Notepad++. It may behave incorrectly otherwise -->
<!-- To verify that it has worked: -->
<!-- 1. Open any *.frl file that you have with Notepad++ -->
@scholtes
scholtes / fril.sublime-syntax
Created September 21, 2016 03:18
FRIL syntax highlighting for Sublime Text
%YAML 1.2
---
# HOW TO USE
#
# Save this as "...\AppData\roaming\Sublime Text 3\Packages\User\fril.sublime-syntax"
# or a similar folder location. The "Sublime Text 3\Packages\User" should already
# exist, so on other systems, you might try looking in:
#
# ~/Library/Application Support/......
# ~/Library/Preferences/......
require 'chunky_png'
include ChunkyPNG
include Math
def encirlate(points, w1, w2, iterations)
iterations.times do |k|
puts "iter #{k}"
new_points = []
for i in 0...points.length
new_points << {
@scholtes
scholtes / ants.clj
Last active September 13, 2015 18:42 — forked from michiakig/ants.clj
Clojure ant sim from Rich Hickey
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Ant sim ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are covered by the
; Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
; which can be found in the file CPL.TXT at the root of this distribution.
; By using this software in any fashion, you are agreeing to be bound by
; the terms of this license.
; You must not remove this notice, or any other, from this software.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:; Modifications ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;