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
*.pbxproj -crlf -diff -merge |
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
-- 'selection' work in Pages.app only | |
tell application "Pages" | |
set selText to selection | |
end tell | |
tell me | |
activate | |
display dialog "Type a tag" default answer "" | |
set the_text to the text returned of result | |
end tell |
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
function rm () { | |
local path | |
for path in "$@"; do | |
# ignore any arguments | |
if [[ "$path" = -* ]]; then : | |
else | |
local dst=${path##*/} | |
# append the time if necessary | |
while [ -e ~/.Trash/"$dst" ]; do | |
dst="$dst "$(date +%H-%M-%S) |
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
// source: ISO 3166-2:RU (http://en.wikipedia.org/wiki/ISO_3166-2:RU) | |
var RU_SUBDIVISIONS_CODES = { | |
// Области | |
AMU: 'Амурская область', | |
ARK: 'Архангельская область', | |
AST: 'Астраханская область', | |
BEL: 'Белгородская область', | |
BRY: 'Брянская область', |
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
import os | |
import shutil | |
import numpy as np | |
import argparse | |
import imutils | |
import glob | |
import cv2 | |
template = cv2.imread('logo_with_title.png') |