Skip to content

Instantly share code, notes, and snippets.

@rikukissa
rikukissa / POST.md
Last active May 6, 2024 11:52
React Hook prompting the user to "Add to homescreen" 🏠 #PWA #React
title slug createdAt language preview
React Hook prompting the user to "Add to homescreen"
react-hook-prompting-the-user-to-add
2018-11-29T20:35:02Z
en
Simple React Hook for showing the user a custom "Add to homescreen" prompt.

React Hook for showing custom "Add to homescreen" prompt

@fallroot
fallroot / git-cherry-diff.md
Last active February 27, 2019 08:21
Diff two branch what was not cherry-picked and cherry-pick with -c option Raw

Git Cherry Diff

Git Cherry

git cherry [-v] [<upstream> [<head> [<limit>]]]

git-cherry - Find commits yet to be applied to upstream

@mrdoob
mrdoob / RequestAnimationFrame.js
Created February 22, 2011 14:50
Provides requestAnimationFrame in a cross browser way.
/**
* Provides requestAnimationFrame in a cross browser way.
* @author paulirish / http://paulirish.com/
*/
if ( !window.requestAnimationFrame ) {
window.requestAnimationFrame = ( function() {
return window.webkitRequestAnimationFrame ||