Skip to content

Instantly share code, notes, and snippets.

View ksoda's full-sized avatar
👯‍♀️
I may be slow to respond.

Ken Sonoda ksoda

👯‍♀️
I may be slow to respond.
  • Tokyo
View GitHub Profile
begin
require 'bundler/inline'
rescue LoadError => e
warn 'Bundler version 1.10 or later is required. Please update your Bundler'
raise e
end
gemfile(true) do
source 'https://rubygems.org'
@ksoda
ksoda / scroll-sync.js
Last active February 9, 2020 07:56 — forked from hogashi/scroll-sync.js
scroll original window -> new window will be scrolled synchronously
//javascript:
(() => {
const mkDebounce = fn => {
let timeoutId;
let resolves = [];
return function(...args) {
return new Promise(resolve => {
clearTimeout(timeoutId);
timeoutId = setTimeout(() => {
timeoutId = null;