Skip to content

Instantly share code, notes, and snippets.

@twhitbeck
twhitbeck / .env
Last active February 21, 2024 15:49
Bash set multiline variable from file
MULTI="This
is
a
test"
SINGLE=foo
MULTI2="This\nis\na\ntest"
@twhitbeck
twhitbeck / MSWExample.stories.tsx
Created October 14, 2022 10:07
An example of using `msw` with ladle
import { setupWorker, rest } from "msw";
export const ExampleStory = () => {
...
};
ExampleStory.decorators = [
(Story) => {
const [ready, setReady] = React.useState(false);
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class extends Component {
@action
outer() {
console.log('clicked outer');
}
@action
@twhitbeck
twhitbeck / .eslintrc.json
Last active June 7, 2019 14:06
no-dupe-class-members issue
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/indent": ["error", 2],
Verifying my Blockstack ID is secured with the address 1CoC2fy8hzsihDChyrwtufBHJP7xRQZAyy https://explorer.blockstack.org/address/1CoC2fy8hzsihDChyrwtufBHJP7xRQZAyy
Update-ExecutionPolicy Unrestricted
Disable-UAC
Disable-BingSearch
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
choco install googlechrome
choco install git
choco install 7zip
choco install sysinternals

Keybase proof

I hereby claim:

  • I am twhitbeck on github.
  • I am twhitbeck (https://keybase.io/twhitbeck) on keybase.
  • I have a public key whose fingerprint is 269A D157 962B 6EAE F5FC 738F E984 2088 0BF4 98D9

To claim this, I am signing this object: