./getbytesperframe.sh 0 100 > sun.dat
gnuplot < sun.gpt > sun.svg
| <manifest ...> | |
| ... | |
| <!-- Make sure your app (or individual activity) uses the | |
| theme with the custom attribute defined. --> | |
| <application android:theme="@style/AppTheme" ...> | |
| ... | |
| </application> | |
| </manifest> |
git clone --depth depth remote-url
Reference: http://blogs.atlassian.com/2014/05/handle-big-repositories-git/
git rm $(git status | grep deleted | awk '{print $2}')
| public static boolean isAvailable(Context ctx, Intent intent) { | |
| final PackageManager mgr = ctx.getPackageManager(); | |
| List<ResolveInfo> list = mgr.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); | |
| return list.size() > 0; | |
| } | |
| public void openGoogleMaps(View v) { | |
| Uri geoLocation = Uri.parse("geo:36.782085,-2.815337?q=36.782085,-2.815337"); | |
| Intent intent = new Intent(Intent.ACTION_VIEW); | |
| intent.setData(geoLocation); |
| public class WeatherDataParser { | |
| public String getWeatherCityName(String weatherJsonStr) throws JSONException { | |
| JSONObject weatherJson = new JSONObject(weatherJsonStr); | |
| return weatherJson.getString("name"); | |
| } | |
| public int getWeatherResponseCode(String weatherJsonStr) throws JSONException { | |
| JSONObject weatherJson = new JSONObject(weatherJsonStr); | |
| return weatherJson.getInt("cod"); |
| private String checkWeatherAPI(String ApiUrl, String q) { | |
| HttpURLConnection urlConnection = null; | |
| BufferedReader reader = null; | |
| // Almacenará la respuesta JSON como una cadena | |
| String weatherJsonStr = null; | |
| try { | |
| // Codificamos el nombre de la ciudad en UTF8 | |
| q = URLEncoder.encode(q, "UTF-8"); |