The collections of code snippets que will make your life pretty much easy!
Make your life easy! 😃
| /** | |
| * You have to use: compile 'commons-codec:commons-codec:1.4' | |
| * as dependency | |
| */ | |
| public static String HMACSHA512(String value, String securityHmac) throws UnsupportedEncodingException, | |
| NoSuchAlgorithmException, InvalidKeyException { | |
| SecretKeySpec key = new SecretKeySpec((securityHmac).getBytes("UTF-8"), "HmacSHA512"); | |
| Mac mac = Mac.getInstance("HmacSHA512"); | |
| mac.init(key); |
| /** | |
| * Created by fernandomartinez on 12/22/14. | |
| */ | |
| public class HashUtils { | |
| public static Map map(Object... keyValuePair) { | |
| Map<Object, Object> map = new HashMap<>(); | |
| for (int i = 0; i < keyValuePair.length; i += 2) { | |
| if (( i + 1 ) < keyValuePair.length && | |
| keyValuePair[i] != null && |
| [1,2,3].map(&:inspect).join(", ") # "1, 2, 3" |
| sudo apt-get install compiz | |
| sudo apt-get install compizconfig-settings-manager | |
| sudo apt-get install compiz-fusion-plugins-extra | |
| sudo apt-get install compiz-plugins-extra |
| ActiveAdmin.register User do | |
| filter :enterprise, collection: proc { Enterprise.all.map { |enterprise| [enterprise.name, enterprise.id] } } | |
| end |
| # built application files | |
| *.apk | |
| *.ap_ | |
| # files for the dex VM | |
| *.dex | |
| # Java class files | |
| *.class |