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
// checksum calculation for GTIN-8, GTIN-12, GTIN-13, GTIN-14, and SSCC | |
// based on http://www.gs1.org/barcodes/support/check_digit_calculator | |
function isValidBarcode(barcode) { | |
// check length | |
if (barcode.length < 8 || barcode.length > 18 || | |
(barcode.length != 8 && barcode.length != 12 && | |
barcode.length != 13 && barcode.length != 14 && | |
barcode.length != 18)) { | |
return false; | |
} |
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 getBrowserLanguages() { | |
var languages = [ 'en' ]; | |
if (navigator) { | |
var language; | |
if (navigator.language) { language = navigator.language; } | |
else if (navigator.browserLanguage) { language = navigator.browserLanguage; } | |
else if (navigator.userLanguage) { language = navigator.userLanguage; } | |
else if (navigator.systemLanguage) { language = navigator.systemLanguage; } | |
else { language = 'en'; } |
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
xquery version '1.0-ml'; | |
<b xmlns="http://www.w3.org/1999/xhtml"> | |
{ | |
let $element := element test { } | |
return | |
for $prefix in fn:in-scope-prefixes($element) return fn:concat("prefix: ", fn:namespace-uri-for-prefix($prefix, $element), ",") | |
} | |
</b> |
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
$(".retweet-off-text").each(function() { $(this).click(); }); |
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
while read line ; do | |
echo $line ; http --ignore-stdin GET https://host$line > `basename $line` | |
done < images.txt |
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
$("div.wishlistsong").each(function(index, wsl) { $.post("/homes/removeWishlistSong/", { ajax: 1, delete: wsl.id.replace('wishlistsong-', '') })}); |
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
// ==UserScript== | |
// @name Hide Rated R Movies on Feature Films page | |
// @namespace http://stevespiga.rel.li/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Steve Spigarelli | |
// @match https://www.slcolibrary.org/mm/mmmo/newFeatureFilms.htm | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Remove Kids Accounts from Total Balance | |
// @namespace http://stevespiga.rel.li/ | |
// @version 0.2 | |
// @description remove kid account balances from total balances - money and savings | |
// @author Steve Spigarelli | |
// @match https://secure.capitalone360.com/myaccount/banking/account_summary.vm | |
// @grant none | |
// ==/UserScript== |
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
ffmpeg -i 1112_20161129185900.ts -ss 00:03:00.000 -t 00:00:30.000 -c:v libvpx -b:v 1M -c:a libvorbis 1112_20161129185900.webm |
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
for i in *.ts; do filename=$(basename $i); base=${filename%.*}; ffmpeg -i $filename -c:v libx264 -c:a libfaac -vf scale=-1:720 -q:a 100 -ac 2 $base.mp4; done |
OlderNewer