This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>HTML Table to Markdown Extra Table</title> | |
<style type="text/css"> | |
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box;} | |
body { font-family: -apple-system, "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5; | |
text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } | |
textarea { width: 100%; height: 15em; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// does not work... | |
var tar = require('tar'); | |
var fstream = require('fstream'); | |
var input = `node_modules`; | |
var reader = fstream.Reader({type: "Directory", path: input}); | |
var pack = tar.Pack(); | |
reader.pipe(pack).pipe(tar.Extract({path: '/tmp/destination-node-tar'})); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyElement | |
Hover | |
HStill | |
HMoving | |
onMouseOut -> MouseOutside | |
onMouseMove -> HMoving | |
onMouseStop -> HStill | |
MouseOutside* | |
onMouseEnter -> HMoving |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const glob = require('glob'); | |
const globPromise = (string) => new Promise((resolve, reject) => { | |
glob(string, (error, result) => { | |
if (error) { | |
reject(error); | |
} | |
resolve(result); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const glob = require('glob'); | |
const globPromise = (string) => new Promise((resolve, reject) => { | |
glob(string, (error, result) => { | |
if (error) { | |
reject(error); | |
} | |
resolve(result); | |
}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#TabsToolbar { | |
visibility: collapse !important; | |
} | |
#main-window[tabsintitlebar]:not([sizemode="fullscreen"]) #TabsToolbar:not([collapsed="true"]) + #nav-bar:not(:-moz-lwtheme) { | |
background-clip: padding-box; | |
position: relative; | |
z-index: 1; | |
padding-left: 67px; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Just paste into your console.. or make a tampermonkey/greasemonkey script out of it. | |
Only tested in Chrome. Be careful.. three tabs are opened per book. | |
If a books image is not removed, you'll need to try to download that book yourself. | |
Use this script (enter into the console of your browser) on the following pages: | |
http://www.oreilly.com/programming/free/ | |
http://www.oreilly.com/business/free/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Debounce promises. | |
Prevents multiple calls if the request is the same and either: | |
1. the promise has not resolved yet | |
2. a delay of {timeout} milliseconds has not passed since the last call | |
The call identity is dependent upon a key created with JSON.stringify(arguments) | |
*/ | |
var debouncePromise = function debouncePromise(methodName, promise, throttleTimeout) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileOverview | |
* @author Russell Dempsey <[email protected]> | |
* 2015 | |
*/ | |
'use strict'; | |
var Decoration = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
var $toolTip = $('<div/>'); | |
$toolTip.addClass('customTooltip-rsd') | |
.css({ | |
position: 'absolute', | |
display: 'inline-block', | |
'font-size': '22px', | |
backgroundColor: '#000', | |
color: '#ffffff', |