var added_nodes = document.querySelectorAll(".blob-code.blob-code-addition .blob-code-inner");
var deleted_nodes = document.querySelectorAll(".blob-code.blob-code-deletion .blob-code-inner");
// var neutral_nodes = document.querySelectorAll(".blob-code.blob-code-context .blob-code-inner"); //don't think one is necessary
var str, new_str, pieces;
function removeNodes(nodes) {
for(var i=0; i < nodes.length; i++) {
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
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
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
$(window).on("scroll", function() { | |
var scrollHeight = $(document).height(); | |
var scrollPosition = $(window).height() + $(window).scrollTop(); | |
if ((scrollHeight - scrollPosition) / scrollHeight === 0) { | |
// when scroll to bottom of the page | |
} | |
}); |
Usage:
gitCheck [directory]
This will run git status
on each repo under the directory specified. If called with no directory provided it will default to the current directory.
Changes
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
--- | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: A basic CloudFormation template for an RDS Aurora cluster. | |
Parameters: | |
DatabaseInstanceType: | |
Default: db.r3.large | |
AllowedValues: | |
- db.r3.large | |
- db.r3.xlarge | |
- db.r3.2xlarge |
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
# forked from https://gist.github.com/chrisjlee/2973469 | |
[client] | |
#password = [your_password] | |
#port = 3306 | |
#socket = /tmp/mysqld.sock | |
# *** Application-specific options follow here *** | |
# |
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
# c/p this into current directory | |
# note - does not remove special chars | |
rename -v 'y/A-Z/a-z/' * && rename -v 's/ /-/g' * |
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
(async function () { | |
let lastGlobalId; | |
let fetchUrl; | |
let bigOleArrayOfContacts = []; | |
const USERNAME_QUERY_SELECTOR = "#recent-header > div.account-details > div.name"; | |
const CSRF_TOKEN_QUERY_SELECTOR = "meta[name=csrf-token]"; | |
console.log("Script has started."); |
OlderNewer