Skip to content

Instantly share code, notes, and snippets.

View jtroe's full-sized avatar

Jay Roebuck jtroe

View GitHub Profile
@jtroe
jtroe / Quincy.geojson
Last active September 4, 2015 00:32
Is It North of Quincy?, a definitive guide
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jtroe
jtroe / Ustick.geojson
Last active April 27, 2016 17:28
If Ustick Road was Global
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jtroe
jtroe / annoying.py
Created July 26, 2015 02:32
Really annoying counter speecher in Python for Mac
from subprocess import call
for i in range(0,50):
call(["say", str(i)])
// First add the option in the Rules menu:
// Add these lines after the other options (m_Japanese ...)
// Enables hiding of VS2013 BrowserLink feature requests
public static RulesOption("Hide SignalR/BrowserLink")
var m_SignalRBrowserLink: boolean = false;
// Add the following at the end of OnBeforeRequest
if (m_SignalRBrowserLink && (oSession.uriContains("SignalR") || oSession.uriContains("__BrowserLink") || oSession.oRequest.headers.RequestPath.EndsWith("/browserLink"))){
oSession["ui-hide"] = "SignalR";
}
'''
NOTES:
- See the ArcGIS REST API documentation for supported operations, methods, and syntax:
http://resources.arcgis.com/en/help/arcgis-rest-api/
- A TOKEN must be passed as parameter in addition to any required inputs for the operation.
- "urllib.urlencode" handles spaces and other special characters in parameters so that valid URLs are constructed.
- "urllib.urlopen" sends the reqest and handles the response.
- Parameters are appended to URL for GET (see Example 1), but passed to "urlopen" for POST (see Example 2). API docs specifiy supported methods for each operation.
- "json.loads" converts string responses to parseable JSON objects.
@jtroe
jtroe / gist:65a201d1c812f66ff640
Created March 9, 2015 19:41
CleanupSchema_MSSQL
/********************************************************
COPYRIGHTS http://www.ranjithk.com
*********************************************************/
CREATE PROCEDURE CleanUpSchema
(
@SchemaName varchar(100)
,@WorkTest char(1) = 'w' -- use 'w' to work and 't' to print
)
AS
/*-----------------------------------------------------------------------------------------
@jtroe
jtroe / sp_help_revlogin
Created December 8, 2014 19:25
SQL Login and Credentials Export
USE master
GO
IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL
DROP PROCEDURE sp_hexadecimal
GO
CREATE PROCEDURE sp_hexadecimal
@binvalue varbinary(256),
@hexvalue varchar (514) OUTPUT
AS
DECLARE @charvalue varchar (514)
@jtroe
jtroe / gist:e956e2cb062a72e0b1f1
Last active August 29, 2015 14:05
All the emoji!

People

:bowtie: 😄 😆 😊 😃 ☺️ 😏 😍