mocking in Vitest: how to conditionally modify a mocked imported function’s behavior
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)
Vaguely organized by tag:
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
I started with npm init vite and picked a SvelteKit project (using TypeScript).
* no this does not involve npm, it just made the title look good 🤷
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
… don’t do it!
Sure can be annoying looking through HTML source trying to find all the <meta name="whatever" content="something that search engines love" /> tags that...
…because the documentation for Hapi is awful:
Are you seeing ESLint throwing an error like
* no this does not involve npm, it just made the title look good 🤷
Today I Learned about the -a flag in MacOS’s open command-line application. It lets you specify the name of an app in /Applications (without the .app ending)...
Run this in your (POSIX-compliant) shell — I promise it’s not bad:
For the next time I forget what this tool is called:
Signals to try in order: 1, 15, 2, only then 9
Might need a patched font to get the fancy glyphs, e.g. Inconsolata for Powerline
Following this how-to by Nassos Michas…
TLDR: history of a deleted/moved file: git log -- path/to/deleted-file find all commits which include a given string in the diff: git log -S string ig...
Because I keep forgetting that I originally put this on the twitters…
First things first: it can be a lot easier to resolve merge conflicts when you can see what the code looked like before the edits which are now conflicting. ...
Ever wanted to look through a Git repository’s history for a commits involving a specific string, but ignoring a certain directory (e.g. for packaged/built c...
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
I started with npm init vite and picked a SvelteKit project (using TypeScript).
… don’t do it!
If you are using a desktop (not mobile/tablet) Mozilla Firefox or Brave Browser (or Google Chrome or another browser based on Chromium), here’s a quick way t...
TLDR: history of a deleted/moved file: git log -- path/to/deleted-file find all commits which include a given string in the diff: git log -S string ig...
Here is how I like to structure my Git branches and commit messages.
tl;dr Don’t use links like github.com/owner/repo/blob/master/file.ext#L13 because that branch will change! Use github.com/owner/repo/blob/COMMIT_SHA/file.ext...
Ever wanted to look through a Git repository’s history for a commits involving a specific string, but ignoring a certain directory (e.g. for packaged/built c...
It worked for Lojban so of course it’ll work for Toki Pona, right?!?
a a ilo Vim la mi pali e lipu kute pi nimi kule
A thought experiment: how might one use a toki pona reference document which only uses sitelen sitelen?
👋 👤 ♾️ ➗️ 🗣 ❗️ ⏰ 👇 🔼 ➗️ 👈 ⏮️ 🧠 🗣 ⏩ 🗣 👍 ❗️
a a ilo Vim la mi pali e lipu kute pi nimi kule
Are you a vi/vim user who’s been hearing about how wonderful/useful/fast Spacemacs can be? Here is an evolving list of pointers for folks beginning to use th...
Might need a patched font to get the fancy glyphs, e.g. Inconsolata for Powerline
Today I Learned about the -a flag in MacOS’s open command-line application. It lets you specify the name of an app in /Applications (without the .app ending)...
Ever find yourself wanting to type a literal ellipsis, like this? …
About once a week now, I’ll notice that the Dock on my Macbook (running 10.8.5) no longer auto-shows itself when hovering at the bottom of the screen.
Isaac Schlueter
ElixirConf US 2015 was October 2–3 in Austin, Texas.
José: What Elixir Is About
TLDR: history of a deleted/moved file: git log -- path/to/deleted-file find all commits which include a given string in the diff: git log -S string ig...
Because I keep forgetting that I originally put this on the twitters…
Ever wanted to look through a Git repository’s history for a commits involving a specific string, but ignoring a certain directory (e.g. for packaged/built c...
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
Cypress v10 is out, and it makes some big changes. It comes with a real handy migration guide built into the cypress open command, which is nice! But the com...
It worked for Lojban so of course it’ll work for Toki Pona, right?!?
Haven’t you always wanted to write Lojban using Ogham letters? .i’isai — Me too!
A thought experiment: how might one use a toki pona reference document which only uses sitelen sitelen?
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
I started with npm init vite and picked a SvelteKit project (using TypeScript).
In 2011 the dev team I was on went to Pivotal Labs for a few months to bootstrap a rebuild of our company’s site, and learn their style of “extreme programmi...
…is an episode of the Ruby Rogues podcast, #129 with Ben Orenstein (who has spent some of his time being the host of Thoughtbot’s Giant Robots podcast). In t...
I’m using Google’s Inbox mail client for work email. Recently I noticed that an email in a thread was marked as being spam, and couldn’t find a way to tell I...
In the middle of the very top of iTunes, between the play/volume controls on the left and the search bar on the right, there’s a panel that normally shows th...
About once a week now, I’ll notice that the Dock on my Macbook (running 10.8.5) no longer auto-shows itself when hovering at the bottom of the screen.
In the middle of the very top of iTunes, between the play/volume controls on the left and the search bar on the right, there’s a panel that normally shows th...
About once a week now, I’ll notice that the Dock on my Macbook (running 10.8.5) no longer auto-shows itself when hovering at the bottom of the screen.
In the middle of the very top of iTunes, between the play/volume controls on the left and the search bar on the right, there’s a panel that normally shows th...
tldr: make a ‘recursive’ ticket which you continually schedule for future sprints… Product will hate it initially, but will love it eventually
In 2011 the dev team I was on went to Pivotal Labs for a few months to bootstrap a rebuild of our company’s site, and learn their style of “extreme programmi...
ElixirConf US 2015 was October 2–3 in Austin, Texas.
José: What Elixir Is About
* no this does not involve npm, it just made the title look good 🤷
CCMenu is a neat little menu icon which shows the build status of your projects on Travis CI, CircleCI, or many other automated build services.
If you are using a desktop (not mobile/tablet) Mozilla Firefox or Brave Browser (or Google Chrome or another browser based on Chromium), here’s a quick way t...
Google Chrome has some nice developer tools. The Network tab in there lets you see requests and their headers, responses, initiators, and much more. Being ab...
…why would anyone want to have Dvorak on a mobile device?!? Actually, I only care about it in the iOS Simulator, when I’m using it on a computer with a real-...
Ever find yourself wanting to type a literal ellipsis, like this? …
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
Thoughtbot’s Hound-CI service runs Rubocop on Ruby projects. It had a setting to show the name of the “cop” (style rule) that failed, which made it easier to...
Because I keep forgetting that I originally put this on the twitters…
First things first: it can be a lot easier to resolve merge conflicts when you can see what the code looked like before the edits which are now conflicting. ...
…because the documentation for Hapi is awful:
Are you seeing ESLint throwing an error like
tldr: make a ‘recursive’ ticket which you continually schedule for future sprints… Product will hate it initially, but will love it eventually
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
It worked for Lojban so of course it’ll work for Toki Pona, right?!?
Haven’t you always wanted to write Lojban using Ogham letters? .i’isai — Me too!
Might need a patched font to get the fancy glyphs, e.g. Inconsolata for Powerline
Might need a patched font to get the fancy glyphs, e.g. Inconsolata for Powerline
Signals to try in order: 1, 15, 2, only then 9
…is an episode of the Ruby Rogues podcast, #129 with Ben Orenstein (who has spent some of his time being the host of Thoughtbot’s Giant Robots podcast). In t...
…is an episode of the Ruby Rogues podcast, #129 with Ben Orenstein (who has spent some of his time being the host of Thoughtbot’s Giant Robots podcast). In t...
In the middle of the very top of iTunes, between the play/volume controls on the left and the search bar on the right, there’s a panel that normally shows th...
elm pine pico nano
elm pine pico nano
In 2011 the dev team I was on went to Pivotal Labs for a few months to bootstrap a rebuild of our company’s site, and learn their style of “extreme programmi...
About once a week now, I’ll notice that the Dock on my Macbook (running 10.8.5) no longer auto-shows itself when hovering at the bottom of the screen.
José: What Elixir Is About
CCMenu is a neat little menu icon which shows the build status of your projects on Travis CI, CircleCI, or many other automated build services.
Google Chrome has some nice developer tools. The Network tab in there lets you see requests and their headers, responses, initiators, and much more. Being ab...
Google Chrome has some nice developer tools. The Network tab in there lets you see requests and their headers, responses, initiators, and much more. Being ab...
Google Chrome has some nice developer tools. The Network tab in there lets you see requests and their headers, responses, initiators, and much more. Being ab...
Are you a vi/vim user who’s been hearing about how wonderful/useful/fast Spacemacs can be? Here is an evolving list of pointers for folks beginning to use th...
Are you a vi/vim user who’s been hearing about how wonderful/useful/fast Spacemacs can be? Here is an evolving list of pointers for folks beginning to use th...
Run this in your (POSIX-compliant) shell — I promise it’s not bad:
Ever find yourself wanting to type a literal ellipsis, like this? …
ElixirConf US 2015 was October 2–3 in Austin, Texas.
I’m using Google’s Inbox mail client for work email. Recently I noticed that an email in a thread was marked as being spam, and couldn’t find a way to tell I...
brew
Don’t need to brew edit or check out old SHAs inside /usr/local/Library any more: just brew switch [project] [version]. Shiny!
Thoughtbot’s Hound-CI service runs Rubocop on Ruby projects. It had a setting to show the name of the “cop” (style rule) that failed, which made it easier to...
tl;dr Don’t use links like github.com/owner/repo/blob/master/file.ext#L13 because that branch will change! Use github.com/owner/repo/blob/COMMIT_SHA/file.ext...
tl;dr Don’t use links like github.com/owner/repo/blob/master/file.ext#L13 because that branch will change! Use github.com/owner/repo/blob/COMMIT_SHA/file.ext...
Here is how I like to structure my Git branches and commit messages.
Here is how I like to structure my Git branches and commit messages.
Isaac Schlueter
Isaac Schlueter
…why would anyone want to have Dvorak on a mobile device?!? Actually, I only care about it in the iOS Simulator, when I’m using it on a computer with a real-...
First things first: it can be a lot easier to resolve merge conflicts when you can see what the code looked like before the edits which are now conflicting. ...
Are you seeing ESLint throwing an error like
Are you seeing ESLint throwing an error like
Are you seeing ESLint throwing an error like
…because the documentation for Hapi is awful:
Sure can be annoying looking through HTML source trying to find all the <meta name="whatever" content="something that search engines love" /> tags that...
(…not quite literally, because these wouldn’t hatch anyway. But they are literal eggs…)
(…not quite literally, because these wouldn’t hatch anyway. But they are literal eggs…)
(…not quite literally, because these wouldn’t hatch anyway. But they are literal eggs…)
(…not quite literally, because these wouldn’t hatch anyway. But they are literal eggs…)
This blog is still alive! Up and running on Jekyll now. Should figure out how to support RSS feeds…
This blog is still alive! Up and running on Jekyll now. Should figure out how to support RSS feeds…
If you are using a desktop (not mobile/tablet) Mozilla Firefox or Brave Browser (or Google Chrome or another browser based on Chromium), here’s a quick way t...
If you are using a desktop (not mobile/tablet) Mozilla Firefox or Brave Browser (or Google Chrome or another browser based on Chromium), here’s a quick way t...
… don’t do it!
Cypress v10 is out, and it makes some big changes. It comes with a real handy migration guide built into the cypress open command, which is nice! But the com...
Cypress v10 is out, and it makes some big changes. It comes with a real handy migration guide built into the cypress open command, which is nice! But the com...
Cypress v10 is out, and it makes some big changes. It comes with a real handy migration guide built into the cypress open command, which is nice! But the com...
We did it — we finally retired BReport!!
We did it — we finally retired BReport!!
We did it — we finally retired BReport!!
We did it — we finally retired BReport!!
We did it — we finally retired BReport!!
Do you think 8-wide tabs are too wide, especially when reviewing code side-by-side?
Do you think 8-wide tabs are too wide, especially when reviewing code side-by-side?
Do you think 8-wide tabs are too wide, especially when reviewing code side-by-side?
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
So you’ve got a JavaScript project in the wild, and real life happens so you’ve been npm installing with the --legacy-peer-deps for a little while now. No ju...
That time we did a Hot Ones-style challenge at work…
That time we did a Hot Ones-style challenge at work…
* no this does not involve npm, it just made the title look good 🤷
* no this does not involve npm, it just made the title look good 🤷
👋 👤 ♾️ ➗️ 🗣 ❗️ ⏰ 👇 🔼 ➗️ 👈 ⏮️ 🧠 🗣 ⏩ 🗣 👍 ❗️
👋 👤 ♾️ ➗️ 🗣 ❗️ ⏰ 👇 🔼 ➗️ 👈 ⏮️ 🧠 🗣 ⏩ 🗣 👍 ❗️
tldr: make a ‘recursive’ ticket which you continually schedule for future sprints… Product will hate it initially, but will love it eventually
tldr: make a ‘recursive’ ticket which you continually schedule for future sprints… Product will hate it initially, but will love it eventually
A thought experiment: how might one use a toki pona reference document which only uses sitelen sitelen?
Haven’t you always wanted to write Lojban using Ogham letters? .i’isai — Me too!
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
Version 5 of Svelte makes some dramatic changes in its API. Cypress component testing already doesn’t play nicely with SvelteKit, and Svelte v5 doesn’t make ...
(This was not apparent at all despite an hour or two looking through Vitest’s docs…)