It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.
This file contains hidden or 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 {Controller} from "@hotwired/stimulus" | |
import {debounce} from "lodash/function"; | |
// Connects to data-controller="auto-save" | |
export default class extends Controller { | |
initialize() { | |
this.autosave = debounce(this.autosave, 200).bind(this) | |
} | |
autosave(event) { |
This file contains hidden or 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
/* | |
* Custom styles for Trello.com | |
* ---------------------------- | |
* | |
* Before: http://drop.dmfranc.com/8ed1 | |
* After (high contrast): http://drop.dmfranc.com/kzdp | |
* After (low contrast): http://drop.dmfranc.com/dEqy | |
* | |
* To use this stylesheet, setup github.com/stewart/dotcss or a similar software. | |
* These styles target only webkit-based browsers (for now). |