This file contains 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
/* Created by Sahil Lavingia | |
http://sahillavingia.com/ */ | |
$(function() { | |
function alphaNumericCheck(theChar) { | |
return ! ((theChar < 48) || (theChar > 122) || ((theChar > 57) && (theChar < 65)) || ((theChar > 90) && (theChar < 97))); | |
} | |
function censor() { | |
var color = $(this).css('color'), |
This file contains 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
listener = function(ev) { | |
if (ev.data && JSON.parse(ev.data).post_message_name == "sale") { | |
document.getElementById('post-message-data').innerHTML = ev.data; | |
} | |
} | |
window.addEventListener('message', listener, false); |
This file contains 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 | |
# Create a (draft) pull request using GitHub CLI. | |
# It assigns the PR to the current user, fills in the title from the first commit, | |
# and uses the PR template file for the description. | |
set -euo pipefail | |
# Colors for output | |
RED='\033[0;31m' |
This file contains 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
import datetime | |
# https://x.com/shl/status/926024538 | |
# Found via https://x.com/search?q=from%3Ashl%20until%3A2008-09-19&src=typed_query&f=live | |
# Define dates | |
first_tweet_date = datetime.date(2008, 9, 18) | |
today = datetime.date.today() | |
birth_date = datetime.date(1992, 8, 25) |