Skip to content

Instantly share code, notes, and snippets.

@tonymtz
tonymtz / gist:d75101d9bdf764c890ef
Last active July 24, 2025 16:11
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@airportyh
airportyh / index.html
Created February 26, 2014 16:04
Results of pairing with Brookes on auto discovering and linking URLs in an editable div.
<!doctype html>
<html>
<head>
</head>
<div id="textarea" contenteditable="true">
Hello, World!
</div>
<button>Done</button>
<script>
textarea.addEventListener('keyup', function(e){