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
mysql -h localhost -u myname -p mypass mydb |
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
require([ | |
"loqi/map", | |
"loqi/Pin", | |
"loqi/Popup", | |
"loqi/Symbols", | |
"dojo/query", | |
"dojo/on", | |
"dojo/dom-form", | |
"dojo/dom-construct", | |
"dojo/_base/event", |
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
dojo.require("esri.arcgis.Portal"); | |
dojo.require("app.OAuthHelper"); | |
dojo.ready(initialize); | |
function initialize() { | |
OAuthHelper.init({ | |
appId: "q244Lb8gDRgWQ8hM", | |
portal: "http://www.arcgis.com", | |
expiration: (14 * 24 * 60), // 2 weeks, in minutes |
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
protected void getLocationPeriodically() { | |
mHandler = new Handler() { | |
@Override | |
public void handleMessage(Message msg) { | |
Location l = (Location) msg.obj; | |
Toast.makeText(getApplicationContext(), "Latitude: " + String.valueOf(l.getLatitude()) + " Longitude: " + String.valueOf(l.getLongitude()), | |
Toast.LENGTH_LONG).show(); | |
} | |
}; | |
new Thread(new Runnable() { |
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
// Three things to note in the signature: | |
// - The method has an async modifier. | |
// - The return type is Task or Task<T>. (See "Return Types" section.) | |
// Here, it is Task<int> because the return statement returns an integer. | |
// - The method name ends in "Async." | |
async Task<int> AccessTheWebAsync() | |
{ | |
// You need to add a reference to System.Net.Http to declare client. | |
HttpClient client = new HttpClient(); |
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
http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer |
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
curl -H "Content-Type: application/json" -H "Authorization: Bearer MdvA0hAw5s45Hdpqr-BfpohFgRzTSlMVkqJ1AFFK6GYzYSThVv3YMi4_nPxHq_ydKDTSNXz5VEGY_5CibpNOlpHJccOf2s-9bXSMPKMqP04fGlHTcGDpFNlSg914ZRQydsV94kjcrhOQmgkyTEDc0Q.." -X POST -d '{"condition": {"direction": "enter","geo": {"latitude": 45.5165,"longitude": -122.6764,"distance": 240}},"action": {"notification": {"text": "Welcome to Doogsland"}}}' https://geotrigger.arcgis.com/trigger/create |
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 function makeDirectory($dir, $mode = 0666) //Not implemented. | |
{ | |
if (is_dir($dir) || @mkdir($dir,$mode)) return true; | |
if (!$this->makeDirectory(dirname($dir),$mode)) return false; | |
return @mkdir($dir,$mode); | |
} |
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
http://localhost/sproxy/dev/auth_proxy.php?https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/dataCollections/?f=pjson |
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
http://localhost/sproxy/dev/auth_proxy.php?http://geoenrich.arcgis.com/arcgis/rest/services/World/MapServer/exts/BAServer/Geoenrichment/Reports/United%20States?f=pjson |