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
#!/bin/sh | |
required_ver="1.1.2" | |
if [ ! $(command -v tystrings) ]; then | |
echo "❗️ tystrings command not found" | |
echo "sudo pip install tystrings" | |
exit 1 | |
elif [ ! `python -c "import tystrings; from pkg_resources import parse_version; print 1 if parse_version(tystrings.__version__) >= parse_version(\"${required_ver}\") else 0;"` ] | |
then | |
echo "❗️ require tystrings version $required_ver" |
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
.PHONY: help | |
help: ## show this help message and exit | |
@echo "usage: make [target]" | |
@echo | |
@echo "targets:" | |
@egrep '^(.+)\:\ ##\ (.+)' ${MAKEFILE_LIST} | column -t -c 2 -s ':#' |
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
{ | |
"version": "1.0", | |
"parameters": [ | |
{ | |
"name": "holiday_promo_enabled", | |
"default": true, | |
"values": { | |
"version 1.0.0": 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
-- CLIDemo.scpt | |
-- | |
-- https://gist.github.com/luckytianyiyan/5714014bb3622143c89a69dea7a1f092 | |
-- | |
-- The MIT License (MIT) | |
-- | |
-- Copyright (c) 2017 luckytianyiyan | |
-- | |
-- Permission is hereby granted, free of charge, to any person obtaining a copy | |
-- of this software and associated documentation files (the "Software"), to deal |
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
#!/bin/sh | |
SRC_FILE=$1 | |
DST_PATH=$2 | |
if [ -z "$DST_PATH" ]; then | |
DST_PATH=$(dirname $0) | |
fi | |
error() { | |
local red="\033[1;31m" |
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
# Python 3 | |
# requirements: | |
# wand==0.4.1 | |
from wand.image import Image | |
import os | |
from math import ceil, floor | |
NUMBER_OF_COL = 17 | |
ITEM_WIDTH = 260 |
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
/* | |
* Copyright (C) 2015 Jared Rummler <jared.rummler@gmail.com> | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
OlderNewer