Skip to content

Instantly share code, notes, and snippets.

View wirtzdan's full-sized avatar
👋

Daniel Wirtz wirtzdan

👋
View GitHub Profile
@dsumer
dsumer / TaxRateModel.ts
Last active February 2, 2022 15:07
Apply the correct VAT Rate to your customer in Stripe Checkout
import { Model } from 'objection';
export default class TaxRateModel extends Model {
countryCode!: string;
stripeId!: string;
static tableName = 'tax_rate';
}
@romansorin
romansorin / .storybook
Created November 10, 2019 00:52
Gatsby, TailwindCSS, Storybook configuration
- addons.js
- config.js
- webpack.config.js
@zchee
zchee / Mac-all-animation-off.md
Last active October 29, 2024 07:53
Mac all animation off
defaults delete com.apple.dock expose-animation-duration
defaults write com.apple.dock springboard-show-duration -int 0
defaults write com.apple.dock springboard-hide-duration -int 0
killall Dock
defaults write com.apple.finder DisableAllAnimations -boolean true
killall Finder
defaults write -g NSInitialToolTipDelay -integer 100
defaults write -g NSWindowResizeTime 0.1
@danharper
danharper / background.js
Last active August 23, 2024 01:26
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});