Skip to content

Instantly share code, notes, and snippets.

View marcelokanzaki's full-sized avatar
🏠
Working from home

Marcelo Kanzaki marcelokanzaki

🏠
Working from home
View GitHub Profile
@dcyoung-dev
dcyoung-dev / auto_save_controller.js
Created March 23, 2023 10:11
Using lodash debounce function in a Stimulus controller
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 document has moved!

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.

@nderkach
nderkach / ios_github_gif.md
Last active February 15, 2024 23:31
How to record iOS screen and share it on github

Record a screencast with QuickTime Player

  1. Connect an iOS defice with a cable
  2. In QuickTime Player: Option-Cmd-N (New Movie Recording) -> Select your device from the recording menu:

http://cl.ly/image/1w0y3Y0H2g2X/record.png

Install gifify

@dmfrancisco
dmfrancisco / trello.com.css
Last active December 10, 2016 21:10
Custom styles for Trello.com
/*
* 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).