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 ipol-cart | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description add a cart to store IPOL images | |
// @author kidanger | |
// @match https://ipolcore.ipol.im/demo/clientApp/demo.html* | |
// @grant none | |
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
// ==/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
#!/usr/bin/env bash | |
file=$1 | |
dir=$(dirname $file) | |
nfile=${file}.new | |
cp $file $nfile | |
cat $file | | |
grep -E '^[^%]*\includegraphics.*trim={.*}.*$' | |
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
--[[ | |
Usage: | |
print = require 'colorprint' | |
or | |
lua colorprint.lua test_colors | |
Feel free to modify, redistribute, or whatever you want without restriction. | |
]] | |
local _print = print | |
local esc = string.char(27, 91) |