Lyric parody of Gone by 'N Sync
Inspired by this tweet
There's a thousand things that I could run
To restore my $HOME
❯ node dateformat.js | |
The date: 2023-08-29T23:30:01.758Z | |
Formatted array: [ | |
{ type: 'month', value: '8' }, | |
{ type: 'literal', value: '/' }, | |
{ type: 'day', value: '29' }, | |
{ type: 'literal', value: '/' }, | |
{ type: 'year', value: '2023' }, | |
{ type: 'literal', value: ', ' }, | |
{ type: 'timeZoneName', value: 'MDT' } |
Lyric parody of Gone by 'N Sync
Inspired by this tweet
There's a thousand things that I could run
To restore my $HOME
Apologies to Robert Frost
Original: The Road Not Taken
Two loads diverged in a red failed build
and sorry I could not debug both
A colleague took a Shrek image, sliced it into 100 emojis, and put it in our Slack. You can easily tile it.
So, I wrote a super gross terse piece of JS to generate new ... images ... of Shrek using this random art.
Here is that gross bit of art.
If you'd like to see an example, look at the screenshot in this tweet.
// Based on inspiration from some conversation in WeAllJS | |
// See wealljs.org for more info on the community! | |
// This is assuming a plain JS object which is why it's not using for-of, since | |
// plain objects aren't iterable | |
function objectPromiseAll(baseObject) { | |
return Promise.all(Object.values(baseObject)).then((resolvedValues) => { | |
const resolvedObject = {}; | |
Object.keys(baseObject).forEach((key, index) => { |
Thanks to a wonderful tip from @brianloveswords I've started using osascript
alongside say
to help me notice when long-running jobs are done.
You can also put a sound with the notification, which is cool, and I wanted a quick way to test every sound on the system, so I ran this:
for f in /System/Library/Sounds/*.aiff
do
file=$(basename -s .aiff $f)
osascript -e "display notification \"$file\" with title \"$file\" sound name \"$file\""
sleep 1
This month (November 2017) I exceeded my bandwidth cap with Xfinity. They started injecting this garbage in a TON of my insecure requests.
Another good argument for HTTPS everywhere: It would stop vendors from injecting garbage like this into requests.
They're doing it again. https://twitter.com/brianarn/status/1012099526713270272
(function () { | |
var focusedElement; | |
setInterval(function () { | |
if (focusedElement !== document.activeElement) { | |
focusedElement = document.activeElement; | |
console.log('Focused element changed:', focusedElement); | |
} | |
}, 50); | |
})(); |
I hear no princess in the night | |
But Link hears all her whispers of defenestration | |
He’s coming in, paraglider flight | |
The sheikah slate reflects the past that guides him toward salvation | |
Got stopped by an old man along the way | |
Hoping to find some long forgotten tech or ancient memories | |
He turned to me as if to say, “Hurry boy, she’s waiting there for you" | |
It's gonna take a lot to clean up all that evil goo | |
There's nothing in a hundred years or more that they could do |
function topLevel() { | |
{ | |
{ | |
{ | |
{ | |
{ | |
{ | |
{ | |
// Pretty | |
} |