Skip to content

Instantly share code, notes, and snippets.


Sergio Serrato sserrato

  • Santa Monica, California, US
View GitHub Profile
sserrato / ExportKindle.js
Created Aug 31, 2020 — forked from jkubecki/ExportKindle.js
Amazon Kindle Export
View ExportKindle.js
// The following data should be run in the console while viewing the page
// It will export a CSV file called "download" which can (and should) be renamed with a .csv extension
var db = openDatabase('K4W', '3', '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) {

Keybase proof

I hereby claim:

  • I am sserrato on github.
  • I am pablockchain ( on keybase.
  • I have a public key ASA5YBoNSW7BCgZ0EcS3CwcwRgZQCNjtnrd76GTFoTrobAo

To claim this, I am signing this object:

View Binary Search Tree - Ruby
class Node
attr_reader :value
attr_accessor :left, :right
def initialize(value=nil)
@value = value
left = nil;
right = nil;

Definitely not comprehensive. This is meant to be a basic memory aid with links to get more details. I'll add to it over time.


$ npm install mongoose --save


const mongoose = require('mongoose');