Skip to content

Instantly share code, notes, and snippets.

View WJimmyCook's full-sized avatar
📺

Jimmy Cook WJimmyCook

📺
View GitHub Profile
@WJimmyCook
WJimmyCook / firebase-online-user-count-example.md
Created October 14, 2020 19:23 — forked from ajaxray/firebase-online-user-count-example.md
Keep list (and count) of online users in a Firebase web app - by isolated rooms or globally

Gathering.js - How to use

Keep list (and count) of online users in a Firebase web app - by isolated rooms or globally.

Live Demo

Firebase Shared Checklist is a demo application that shows the number of users joined a checklist using gathering.js. Here is a 1 minute screencast of using this application.

@WJimmyCook
WJimmyCook / deletelocalgitbranches
Created January 11, 2020 20:54
Delete all local git branches that are already merged into master.
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
@WJimmyCook
WJimmyCook / ExportKindle.js
Created February 23, 2019 14:59 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
// The following data should be run in the console while viewing the page https://read.amazon.com/
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '2', 'thedatabase', 1024 * 1024);
getAmazonCsv = function() {
// Set header for CSV export line - change this if you change the fields used
var csvData = "ASIN,Title,Authors,PurchaseDate\n";
db.transaction(function(tx) {