##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
| :- use_module(library(bounds)). | |
| :- use_module(library(clp_distinct)). | |
| suudoku(P) :- | |
| Rows = [R1,R2,R3,R4,R5,R6,R7,R8,R9], | |
| problem(P, Rows), | |
| append_all(Rows, Vars), | |
| vars_in(Vars, 1, 9), | |
| Vars in 1..9, | |
| row_constraint(Rows), |
| // CustomChronometer Copyright (C) 2012 Ademar Alves de Oliveira and jurema.la | |
| // | |
| // 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, | |
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| #!/bin/python | |
| ''' | |
| @author ademar | |
| encontrar os 2 primos que somados formam um numero par | |
| ''' | |
| import sys | |
| def getPrimeUpTo(x): | |
| print "getting prime numbers up to", x |
| #!/usr/bin/python | |
| __author__ = "Ademar Alves de Oliveira" | |
| __copyright__ = "Copyright 2013, Ademar" | |
| __credits__ = ["S. Kirkpatrick", "C. D. Gelatt", "M. P. Vecchi", "A. C. L. Junior", "Diego Queiroz"] | |
| __license__ = "GPL" | |
| __version__ = "1.1" | |
| __maintainer__ = "Ademar Alves" | |
| __email__ = "[email protected]" |
| out/* |
| #!/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, |
##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 | |
| # 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 |
| #!/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 | |
| # 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 |