Skip to content

Instantly share code, notes, and snippets.

@mirkonasato
mirkonasato / signalign
Last active April 23, 2020 12:14
Sign and align an Android APK
#!/bin/sh
#
# Automates signing and aligning Android APKs as per
# http://developer.android.com/tools/publishing/app-signing.html#signing-manually
#
# USAGE: signalign platforms/android/build/outputs/apk/android-release-unsigned.apk
#
set -e
# configure the next two properties for your own certificate
@warenhaus
warenhaus / qtranslate_hooks.php
Last active May 25, 2017 20:21
qtranslate with the new Visual editor in Wordpress 3.9
<?php // encoding: utf-8
/*Copyright 2008Qian Qin(email : mail@qianqin.de)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@tlync
tlync / jquery-outer.js
Created June 9, 2011 05:01
jquery outer width/height plugin - Set the outer width/height of each element in the set of matched elements.
//TODO: refactoring
(function($){
var origOuterWidth = $.fn.outerWidth,
origOuterHeight = $.fn.outerHeight;
/**
* Get the current outer width for the first element in the set of matched elements.
* or set the outer width of each element in the set of matched elements.
*