Skip to content

Instantly share code, notes, and snippets.

@julianklotz
julianklotz / find_large_elements.js
Last active April 8, 2020 13:26
This code snippet checks a web page for elements that (may) exceed the browser’s viewport width.
/*global
window, document, console
*/
/**
* This code snippet checks a web page for elements that (may) exceed the browser’s viewport width.
*
* You’ve built a HTML page and for some reason, there’s a vertical scrollbar.
* It scrolls just a tiny bit, but when ever you scroll down, the page glitches right and left slightly.
* This piece of JavaScript loops all DOM nodes and nodes that are wider than the window’s viewport.
@julianklotz
julianklotz / plinks.js
Last active January 18, 2018 14:57
Utility functions for linking into native messaging applications (currently SMS and WhatsApp) without prepoluating a phone number.
require 'formula'
class Screen <Formula
homepage 'http://www.gnu.org/software/screen/'
url 'http://ftp.gnu.org/gnu/screen/screen-4.0.3.tar.gz'
md5 '8506fd205028a96c741e4037de6e3c42'
# brew install --HEAD to get the latests, includes vertical split, mapped
# to C-a |
head 'git://git.savannah.gnu.org/screen.git', :branch => 'master'