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
# ------------------------------- | |
# ericgi231.me | |
# ------------------------------- | |
RewriteEngine On | |
Options -MultiViews | |
# --- Handle routing apis --- | |
# Try PHP | |
RewriteCond /var/www/php-api/$1.php -f |
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
<?php | |
echo "Server:\n"; | |
$servername = trim(fgets(STDIN)); | |
echo "User:\n"; | |
$username = trim(fgets(STDIN)); | |
echo "Password:\n"; | |
$password = trim(fgets(STDIN)); | |
echo "Database:\n"; | |
$dbname = trim(fgets(STDIN)); | |
echo "Table:\n"; |
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
WORDS = ["pigs","sand","mail","date","head","clam","peak","heat","joya","well","toad","card","will","tape","legs","tree","road","maid","slab","rock","hand","vase","safe","clay","toes"] | |
def char_to_int(char): | |
return ord(char) - ord('a') + 1 | |
def int_to_char(num): | |
return chr(num + ord('a') - 1) | |
def find_core(): | |
base_nums = [] |
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
// ==UserScript== | |
// @name Add daily art to NYT Connections | |
// @namespace http://tampermonkey.net/ | |
// @version 2025-08-19 | |
// @description Adds the NYT Connections daily art from the hint page to the main game page. | |
// @author Eric Grant | |
// @match https://www.nytimes.com/games/connections | |
// @match https://www.nytimes.com/games/connections/* | |
// @require https://code.jquery.com/jquery-3.7.0.min.js | |
// @connect nytimes.com |