##Restart ADB as root a linux utilitie to android developers
##how to use
###dependencies
Your adb need be on PATH variable
You need sudo access
#!/usr/local/bin/lua | |
Alah = {} | |
Alah.__index = Alah | |
function Alah:new(latin, arabic, portuguese) | |
o = {} | |
setmetatable(o, self) | |
self.__index = self | |
self.latin = latin |
import android.animation.Animator; | |
import android.animation.AnimatorSet; | |
import android.animation.ObjectAnimator; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.animation.AccelerateDecelerateInterpolator; | |
import java.util.ArrayList; | |
import java.util.List; |
import java.util.regex.Pattern; | |
public static final Pattern CPF = Pattern.compile("^([0-9]{3}\\.?){3}-?[0-9]{2}$"); | |
public static final Pattern CEP = Pattern.compile("[0-9]{5}-?[0-9]{3}"); |
import android.content.res.Resources; | |
import android.graphics.drawable.Drawable; | |
import android.text.Spannable; | |
import android.text.SpannableStringBuilder; | |
import android.text.style.ImageSpan; | |
import android.view.View; | |
import android.widget.ImageView; | |
import android.widget.LinearLayout; | |
import android.widget.SearchView; | |
import android.widget.TextView; |
#!/usr/bin/python | |
''' | |
A script to generate current timestamp in hexadecimal | |
''' | |
from time import time | |
print hex(int(time())) |
#!/bin/bash | |
# this is a more easy way of use the drawable_convert.py | |
# https://gist.github.com/ademar111190/9261668 | |
# this is a GPL 3+ script | |
# author Ademar Alves de Oliveira <[email protected]> | |
mkdir res res/drawable-hdpi res/drawable-mdpi res/drawable-xhdpi res/drawable-xxhdpi | |
mv $1 res/drawable-xxhdpi | |
drawable_convert.py -d res/drawable-mdpi -d res/drawable-hdpi -d res/drawable-xhdpi res/drawable-xxhdpi/$1 |
#!/usr/bin/python | |
import sys | |
import argparse | |
import os | |
import re | |
''' | |
A simple script to create lower-resolution Android drawables from higher-resolution ones. |
#!/bin/bash | |
# extract zips files from android ui utils: | |
# http://android-ui-utils.googlecode.com/hg/asset-studio/dist/index.html | |
# this is a GPL 3+ script | |
# author Ademar Alves de Oliveira <[email protected]> | |
# how to use: | |
# extractIcon.sh file_with_icons.zip destination/folder |
##Restart ADB as root a linux utilitie to android developers
##how to use
###dependencies
Your adb need be on PATH variable
You need sudo access
#!/bin/bash | |
# Copyright 2014 Ademar Alves de Oliveira <[email protected]> | |
# | |
# 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 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |