Skip to content

Instantly share code, notes, and snippets.

View Shilo's full-sized avatar

Shilo Shilo

View GitHub Profile
// These two need to be declared outside the try/catch
// so that they can be closed in the finally block.
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
// Will contain the raw JSON response as a string.
String forecastJsonStr = null;
try {
// Construct the URL for the OpenWeatherMap query
app id = de.xida.example
install:
adb install yourapk.apk
uninstall:
adb uninstall de.xida.example
kill task
adb shell am force-stop de.xida.example
@Shilo
Shilo / Instructions.md
Last active August 29, 2015 13:59
AppleScript to hide iOS Simulator when you run Xcode Tests.
  1. Save Tests.scpt to the folder ~/.Xcode/
  2. Open the folder ~/.Xcode/ in Terminal.app
  3. Perform the command chmod +x ./Tests.scpt in Terminal.app
  4. Open Xcode ➭ Behaviors ➭ Testing Succeeds
  5. Choose ~/.Xcode/Tests.scpt in the Run popup
  6. Open Xcode ➭ Behaviors ➭ Testing Fails and repeat