Skip to content

Instantly share code, notes, and snippets.

cemerson /
Last active July 22, 2024 20:49 Scanned Book Downloader Bookmarklet Scanned Book Downloader Bookmarklet

A simple "1-click" javascript approach to downloading a scanned book from to read at your leisure on the device of your choosing w/out having to manually screenshot every pages of the book by hand. In short it's a glorified "Save Image As..." approach but consolidated down to "1 click". BTW there may be a much better option than this out there - I just built this as an autistic project to see if it would work.

Demo Video SBDL Demo

Obligatory Legal/Disclaimer:

By using this script you agree to delete all book files/images after your 1 hour or 14 days is up! I don't support using this script for any other use cases. After all, none of us have ever kept a library book past it's return date, right?

learncodeacademy / webpack.config.js
Created January 8, 2016 03:55
Sample Basic Webpack Config
var debug = process.env.NODE_ENV !== "production";
var webpack = require('webpack');
module.exports = {
context: __dirname,
devtool: debug ? "inline-sourcemap" : null,
entry: "./js/scripts.js",
output: {
path: __dirname + "/js",
filename: "scripts.min.js"
addyosmani / package.json
Last active May 29, 2024 15:54
npm run-scripts boilerplate
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
paulodeleo / .tmux.conf
Last active July 15, 2022 10:16
Tmux configuration to enable mouse scroll and mouse panel select, taken from:
# Make mouse useful in copy mode
setw -g mode-mouse on
# Allow mouse to select which pane to use
set -g mouse-select-pane on
# Allow mouse dragging to resize panes
set -g mouse-resize-pane on
# Allow mouse to select windows
pamelafox / impressflow.js
Created February 15, 2012 23:37
impress.js: Attempt at flowchart generation
// Each DIV has data-parent="parentid" (except the top)
// Go through all steps, make hierarchy of parent to children
var childrenIds = {};
var topId;
$('.step').each(function() {
var id = $(this).attr('id');
var parentId = $(this).attr('data-parent');
if (!parentId) {
topId = id;
} else {