Skip to content

Instantly share code, notes, and snippets.

View ashutosh2411's full-sized avatar

Ashutosh Upadhye ashutosh2411

View GitHub Profile
@ashutosh2411
ashutosh2411 / Marp.desktop
Created October 23, 2018 05:02 — forked from Naereen/Marp.desktop
Marp.desktop file to add a system shortcut for Marp (https://yhatt.github.io/marp/)
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Marp
GenericName=Marp - Markdown Presentation Editor
Icon=/home/lilian/.local/Marp/marp.png
Exec=/home/lilian/.local/Marp/Marp %f
Categories=Office
Terminal=false
@ashutosh2411
ashutosh2411 / gitprint.js
Last active October 24, 2018 08:55 — forked from beevelop/gitprint.js
Print GitHub markdown files
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white')
document.querySelector('body').appendChild(document.querySelector('#readme'))
window.print()
// For a zoomed in version, without the border, use the following code snippet.
(function () {
var $ = document.querySelector.bind(document);
$('#readme').setAttribute('style', 'position:absolute;top:0;left:0;right:0;bottom:0;z-index:100;background-color:white');
$('#readme>article').setAttribute('style', 'border: none');