Skip to content

Instantly share code, notes, and snippets.

View igorglotov's full-sized avatar

Igor Glotov igorglotov

View GitHub Profile
@igorglotov
igorglotov / assets-sorter.sh
Last active August 29, 2015 14:21
Simple Android Assets Importer
#!/bin/bash
# Simple Android Assets Importer
# description: Sorts assets given by designer from file name postfix to
# android drawable directory structure
#
# for example: ic_launcher_xxhdpi.png to xxhdpi/ic_launcher.png
#
# usage: ./assets-sort.sh DIR DELIMITER
# example: ./assets-sort.sh Assets/ "_"
# note: no delimiter is used if not set by ARGV
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)
Google Apps for Android 4.1 (https://www.androidfilehost.com/?fid=22979706399755082 - gapps-jb-20121011-signed.zip)
@igorglotov
igorglotov / downloader.sh
Last active August 29, 2015 14:01
downloader 2.0
#!/bin/bash
for i in 2011 2012 2013 2014
do
for j in 01 02 03 04 05 06 07 08 09 10 11 12
do
for k in $(seq 1 9999)
do
wget -O $i-$j-$(printf %04d ${k%}).png http://lib.glavteh.ru/magazine/$i-$j/full/$(printf %04d ${k%}).png || break
done
@igorglotov
igorglotov / cliptopadding
Created October 23, 2013 16:33
ListView with clipToPadding option
<ListView
android:paddingTop="?actionBarSize"
android:layout_gravity="start|bottom"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/chats_list"
android:clipToPadding="false"
android:transcriptMode="normal"/>