Skip to content

Instantly share code, notes, and snippets.

@Wikinaut
Wikinaut / make-nxm.sh
Last active June 1, 2018 18:29
Make n x m: create an n x m stripe of an image (Linux version)
#! /bin/bash
# LINUX convert \( aa.png aa.png aa.png aa.png aa.png +append \) \( aa.png aa.png aa.png aa.png aa.png +append \) -append -gaussian-blur 0.5x0.5 x.png
# call make-nxm <image-filename> rows columms [postfilter-command]
if [ $# -lt 3 ] ; then
echo
echo "Create a composed n x m image from a single image"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javasc
@Wikinaut
Wikinaut / build.gradle
Last active May 7, 2023 20:36
Generate fully-flavoured apk filename with app_name, versionName, versionCode, git hash
apply plugin: 'android-sdk-manager'
apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
apply from: '../config/quality.gradle'
import com.android.ddmlib.DdmPreferences
import java.util.concurrent.TimeUnit
// Copy the signing.properties.sample file to ~/.sign/signing.properties and adjust the values.