Skip to content

Instantly share code, notes, and snippets.

View nashv's full-sized avatar

Nachiket Vartak nashv

View GitHub Profile
@nashv
nashv / dark-scrollbar.as.css
Last active June 16, 2018 16:12 — forked from Sporif/dark-scrollbar.as.css
Thin, dark scrollbars for Firefox 57+ Quantum. Designed to match the dark theme. Tested on Windows 10. Requires https://gist.github.com/Sporif/db6b3440fba0b1bcf5477afacf93f875
/* remove incremental scroll buttons located at scrollbar ends.
important note:
only partially zero out height/width dimensions
to prevent entire scrollbar from disappearing
(ie, scrollbarbutton collapse results in scrollbar collapse)
*/
scrollbar[orient='vertical'] > scrollbarbutton
{
min-height: 0mm !important;
}
@nashv
nashv / Biltree
Created February 19, 2017 20:37
Biliary Tree calculations
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {
"collapsed": true,
"deletable": true,
"editable": true
},
How can entropy be reversed
The Last Question by Isaac Asimov © 1956
The last question was asked for the first time, half in jest, on May 21, 2061, at a time when humanity first stepped into the light. The question came about as a result of a five dollar bet over highballs, and it happened this way:
Alexander Adell and Bertram Lupov were two of the faithful attendants of Multivac. As well as any human beings could, they knew what lay behind the cold, clicking, flashing face -- miles and miles of face -- of that giant computer. They had at least a vague notion of the general plan of relays and circuits that had long since grown past the point where any single human could possibly have a firm grasp of the whole.
Multivac was self-adjusting and self-correcting. It had to be, for nothing human could adjust and correct it quickly enough or even adequately enough -- so Adell and Lupov attended the monstrous giant only lightly and superficially, yet as well as any men could. They fed it data, adjusted questions t
//Note: This command lets you use the Readability project through Ubiquity
CmdUtils.makeBookmarkletCommand({
name: "rd",
icon: "http://nashv.de/nash.ico",
preview: "format current page for better readability",
url: "javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='http://lab.arc
@nashv
nashv / x
Created March 10, 2009 20:10
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "rd",
icon: "http://nashv.de/nash.ico",
preview: "format current page for better readability",
url: "javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='ht
@nashv
nashv / x
Created March 10, 2009 20:08
//Note: This command was automatically generated by the create-bookmarklet-command command.
CmdUtils.makeBookmarkletCommand({
name: "rd",
icon: "http://nashv.de/nash.ico",
preview: "format current page for better readability",
url: "javascript:(function(){readStyle='style-newspaper';readSize='size-medium';readMargin='margin-medium';_readability_script=document.createElement('SCRIPT');_readability_script.type='text/javascript';_readability_script.src='http://lab.arc90.com/experiments/readability/js/readability-0.1.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(_readability_script);_readability_css=document.createElement('LINK');_readability_css.rel='stylesheet';_readability_css.href='http://lab.arc90.com/experiments/readability/css/readability.css';_readability_css.type='text/css';document.getElementsByTagName('head')[0].appendChild(_readability_css);_readability_print_css=document.createElement('LINK');_readability_print_css.rel='stylesheet';_readability_print_css.href='ht