git rm $(git status | grep deleted | awk '{print $2}')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
git clone --depth depth remote-url
Reference: http://blogs.atlassian.com/2014/05/handle-big-repositories-git/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest ...> | |
... | |
<!-- Make sure your app (or individual activity) uses the | |
theme with the custom attribute defined. --> | |
<application android:theme="@style/AppTheme" ...> | |
... | |
</application> | |
</manifest> |
/* JPEG 2000 - defined in IEC 15444-1 "JPEG 2000 Core (part 1)" */
/* delimiters */
SOC = 0x4f, /* start of codestream */
SOT = 0x90, /* start of tile */
SOD = 0x93, /* start of data */
EOC = 0xd9, /* end of codestream */
/* fixed information segment */
SIZ = 0x51, /* image and tile size */
/* functional segments */
COD = 0x52, /* coding style default */
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|Time | 172.20.55.72 | | |
| | | 46.101.34.192 | | |
|7.801943000| GET /jpip?cid=JPHT85 |HTTP: GET /jpip?cid=JPHT85B91EE67E99FA1A&cclose=JPHT85B91EE67E99FA1A&stream=0 HTTP/1.1 | |
| |(53185) ------------------> (8080) | | |
|7.801945000| GET /jpip?cid=JPHT01 |HTTP: GET /jpip?cid=JPHT011897797E99FA1A&cclose=JPHT011897797E99FA1A&stream=0 HTTP/1.1 | |
| |(53185) ------------------> (8080) | | |
|7.924470000| HTTP/1.1 200 OK |HTTP: HTTP/1.1 200 OK | |
| |(53185) <------------------ (8080) | | |
|7.972195000| HTTP/1.1 200 OK |HTTP: HTTP/1.1 200 OK | |
| |(53185) <------------------ (8080) | |
OlderNewer