# ~/.gitconfig
[merge]
tool = diffview
[mergetool]
prompt = false
Discover gists
This file contains 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
javascript: (function() { | |
var debugOn = false; | |
let checkBoxesIDS = ["capture_outlinks", "capture_all", "capture_screenshot", "wm-save-mywebarchive", "email_result"]; | |
const userLocation = this.document.location.href; | |
check(); | |
function check() { | |
if (debugOn) console.log("[\"WayBack Mashine\" (WBM) bookmarklet][log]\nStatus: script starts executing."); | |
const URLsFilter = ["www.", "http://", "https://"]; | |
const WBMsites = ["https://web.archive.org/save/", "https://web.archive.org/save"]; | |
if (!WBMsites.includes(userLocation)) { |
This file contains 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
if (typeof jQuery == 'undefined') { | |
var jQ = document.createElement('script'); | |
jQ.type = 'text/javascript'; | |
jQ.onload = runthis; | |
jQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js'; | |
document.body.appendChild(jQ); | |
} else { | |
runthis(); | |
} |
This file contains 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
CmdUtils.makeBookmarkletCommand({ | |
name: "Printliminator", | |
url: "javascript:(function(){function%20loadScript(a,b){var%20c=document.createElement('script');c.type='text/javascript';c.src=a;var%20d=document.getElementsByTagName('head')[0],done=false;c.onload=c.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=='loaded'||this.readyState=='complete')){done=true;b()}};d.appendChild(c)}loadScript('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js?ver=1.3.2',function(){loadScript('http://css-tricks.com/examples/ThePrintliminator/js/printliminator.js',function(){printlimator()})})})()" | |
}) |
This file contains 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 getBookmarklets(callback) { | |
var bookmarklets = {}; | |
var Ci = Components.interfaces; | |
var Cc = Components.classes; | |
var bookmarks = Cc["@mozilla.org/browser/nav-bookmarks-service;1"] | |
.getService(Ci.nsINavBookmarksService); | |
var history = Cc["@mozilla.org/browser/nav-history-service;1"] |
This file contains 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
#!/usr/bin/perl | |
#generates a bookmarklet from a javascript file | |
#and outputs a html page to drag the link to the bookmark bar | |
#based on john grubers bookmarklet script: | |
#http://daringfireball.net/2007/03/javascript_bookmarklet_builder | |
use strict; | |
use warnings; | |
use URI::Escape qw(uri_escape_utf8); |
This file contains 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 getBookmarklets(callback) { | |
var bookmarklets = {}; | |
var Ci = Components.interfaces; | |
var Cc = Components.classes; | |
var bookmarks = Cc["@mozilla.org/browser/nav-bookmarks-service;1"] | |
.getService(Ci.nsINavBookmarksService); | |
var history = Cc["@mozilla.org/browser/nav-history-service;1"] |
This file contains 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
'use strict'; | |
// We start by accepting an input string of code, and we're gonna set up two | |
// things... | |
function tokenizer(input) { | |
// A `current` variable for tracking our position in the code like a cursor. | |
let current = 0; | |
// And a `tokens` array for pushing our tokens to. |
NewerOlder