I hereby claim:
- I am scottyab on github.
- I am scottyab (https://keybase.io/scottyab) on keybase.
- I have a public key whose fingerprint is 88AE 289F 03AE 3684 94BA B89F A056 9F94 AD10 76CD
To claim this, I am signing this object:
| /** | |
| * simple util to build the static google map url for the lat/long | |
| * @param latitude | |
| * @param longitude | |
| * @return static google map url | |
| */ | |
| public static Uri buildStaticGoogleMapUrlForAddress(String latitude, String longitude){ | |
| Builder builder = Uri.parse("http://maps.google.com/maps/api/staticmap").buildUpon(); | |
| builder.appendQueryParameter("center", latitude+","+longitude); |
| public class MyXofYPagerAdapter extends FragmentPagerAdapter { | |
| private final ArrayList<RssItem> items; | |
| public MyXofYPagerAdapter(FragmentManager fm, | |
| ArrayList<RssItem> items) { | |
| super(fm); | |
| this.items = items; | |
| } | |
| @Override |
| #Remove Android logging code | |
| -assumenosideeffects class android.util.Log { | |
| public static boolean isLoggable(java.lang.String, int); | |
| public static int v(...); | |
| public static int i(...); | |
| public static int w(...); | |
| public static int d(...); | |
| public static int e(...); | |
| public static java.lang.String getStackTraceString(java.lang.Throwable); | |
| } |
| /* | |
| * Copyright 2013 Scott Alexander-Bown | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| package com.scottyab.encryption; | |
| /* | |
| * This software is provided 'as-is', without any express or implied | |
| * warranty. In no event will Google be held liable for any damages | |
| * arising from the use of this software. | |
| * | |
| * Permission is granted to anyone to use this software for any purpose, | |
| * including commercial applications, and to alter it and redistribute it | |
| * freely, as long as the origin is not misrepresented. |
| public class Repository extends SQLiteOpenHelper { | |
| private static final int VERSION = 1; | |
| private static final String DATABASE_NAME = "data.sqlite"; | |
| private static File DATABASE_FILE; | |
| // This is an indicator if we need to copy the | |
| // database file. | |
| private boolean mInvalidDatabaseFile = false; | |
| private boolean mIsUpgraded = false; | |
| private Context mContext; |
| #!/bin/bash | |
| # no further use for remaining crypto stuff | |
| rm -Rf crypto | |
| # Package rename org.bouncycastle to org.spongycastle | |
| find -name bouncycastle | xargs rename s/bouncycastle/spongycastle/ | |
| find bc* -type f | xargs sed -i s/bouncycastle/spongycastle/g |
| #!/bin/bash | |
| #Licensed under the Apache License, Version 2.0 (the "License"); | |
| #you may not use this file except in compliance with the License. | |
| #You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | |
| #Copyright 2013 Valentin Kalchev | |
| #Date: 26/02/2013 | |
| #Target: Mac OS X Terminal + Android ADB + AAPT | |
| sharePackageName="" |
I hereby claim:
To claim this, I am signing this object:
| package com.vf.tools | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.RandomAccessFile; | |
| import java.util.UUID; | |
| import android.content.Context; |