Skip to content

Instantly share code, notes, and snippets.


Shilo Shilo

View GitHub Profile
Shilo /
Last active Aug 29, 2015 — forked from shpakovski/
AppleScript to hide iOS Simulator when you run Xcode Tests.
  1. Save Tests.scpt to the folder ~/.Xcode/
  2. Open the folder ~/.Xcode/ in
  3. Perform the command chmod +x ./Tests.scpt in
  4. Open Xcode ➭ Behaviors ➭ Testing Succeeds
  5. Choose ~/.Xcode/Tests.scpt in the Run popup
  6. Open Xcode ➭ Behaviors ➭ Testing Fails and repeat
View gist:ae1189d1f363e46d81f7
app id = de.xida.example
adb install yourapk.apk
adb uninstall de.xida.example
kill task
adb shell am force-stop de.xida.example
View gist:6511f1520d7608e7dba3
// 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
Httpconnection connection = null;
BufferedReader reader = null;
String forecastJsonStr = null;
try {
URL url = new URL("");
connection = (Httpconnection) url.openConnection();
View color.m
Distributed under The MIT License:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
View Unity Right Click Open Folder.reg
Windows Registry Editor Version 5.00
"MUIVerb"="Open as Unity Project"
@="cmd /c start /D\"c:\\Program Files\\Unity\\Editor\\\" Unity.exe -projectPath \"%1\""
View gist:e470c28b24127f78795f
create dummy images
curl -L "[01-10]" -o image_#1.png
get page headers
curl --head
send parameters to page
curl.exe -L -G "" --data-urlencode "text=DESIGN6 daily backup started"
send formdata & files to page
Shilo / .gitignore
Created May 28, 2016 — forked from Shogan/.gitignore
Unity3D .gitignore for team collaboration
View .gitignore
# Unity generated and a few customs #
# ================================= #
# ===================================== #
Shilo / gist:76f8428d010916b50a4461418cba33cb
Created Aug 6, 2016 — forked from XueshiQiao/gist:5918651
Disable warning "PerformSelector may cause a leak because its selector is unknown"
View gist:76f8428d010916b50a4461418cba33cb
//disable warning:"PerformSelector may cause a leak because its selector is unknown"
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
[self.delegate performSelector:self.selector];
#pragma clang diagnostic pop