If you're used to solving cryptic puzzles, or deciphering texts using crypt-analytical cribs, it can be useful to know the relative frequency of letters in the distribution of words. Wordle has a built-in list of 5-letter words. That list isn't the same as all of the five letter words in the dictionary, or even only the common ones. Perfectly common words like 'tudor' are omitted. This gist contains a few useful tables that are worth familiarizing yourself with if you want to solve wordle puzzles logically.
This file contains hidden or 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
| # Copyright 2021 Scratchwork Development LLC. All rights reserved. | |
| PI = 3.1415926 | |
| class Game | |
| attr_gtk | |
| def tick | |
| defaults | |
| render |
This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
This project is a tiny compiler for a very simple language consisting of boolean expression.
The language has two constants: 1 for true and 0 for false, and 4 logic gates:
! (not), & (and), | (or), and ^ (xor).
It can also use parentheses to manage priorities.
Here is its grammar in BNF format:
expr ::= "0" | "1"
This file contains hidden or 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
| #!/bin/bash | |
| # | |
| # Backs up my entire website, in case Tumblr or CloudApp goes down someday. | |
| # Last time I ran this, it took 18 minutes. | |
| # | |
| wget \ | |
| --mirror `# turns on recursion and timestamping, basically says we want to "mirror" the whole site` \ | |
| --convert-links `# after download, convert all links to point to localhost` \ |
This file contains hidden or 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
| "time" | |
| "down" | |
| "life" | |
| "left" | |
| "back" | |
| "code" | |
| "data" | |
| "show" | |
| "only" | |
| "site" |
This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.
| Description | Syntax |
|---|---|
| Get the length of a string | ${#VARNAME} |
| Get a single character | ${VARNAME[index]} |
This file contains hidden or 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
| name: example CICD | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| # only commits containing changes under these paths will trigger this workflow | |
| - 'services/example/**' | |
| - 'lib/example/**' |
This file contains hidden or 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
| license: apache-2.0 | |
This is how you'd call the function:
Call(Function("GetNestedDocument"), [Ref(Collection("SomeCollection"), "264260207986606612"), 0, 3])
Parameters:
- A
Refof a document. - Current depth. Since AFAIK we cannot have default values in
Lambdawe need to pass0for the first level. - Max depth. The max number of levels the recursive function will go.