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
# EXPIREEQ key value_assertion seconds | |
# Set a timeout on key if the current value equals value_assertion. | |
# EXPIREEQ is short for "EXPIRE if EQual" | |
# The lua script: | |
expireeq = <<-EOF | |
local key = KEYS[1] | |
local val_assert = ARGV[1] | |
local ex = ARGV[2] | |
local val = redis.call("GET", key) |
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
/* | |
* Use Chrome web inspector to remove elements for files | |
* you don't want to count in the diff stats, then run this | |
* function to update the diff stats in the UI | |
*/ | |
function () { | |
var allAdditions = 0; | |
$(".diffstat > a").each( function (index, element) { | |
$(".diffstat-bar", this).remove(); | |
var addition = $.trim($(this).text().replace(/[A-Za-z$-]/g, "")); |
NewerOlder