Skip to content

Instantly share code, notes, and snippets.

Scott Hale computermacgyver

Block or report user

Report or block computermacgyver

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@zostay
zostay / README.txt
Last active Dec 21, 2018
Google Authentication Workflow for Pebble Watchapps
View README.txt
None of the workflow examples given in the Google Authentication OAuth2 documentation
(https://developers.google.com/accounts/docs/OAuth2) handle what's needed for Pebble. I
basically had to mix the needs of a client-side application with an offline web application
to get what's needed and work within the restrictions of the Pebble JS toolkit.
The steps are as follows:
1. Setup a Client ID for Web Application on the Google Developer Console
2. On the configuration web pages, with SSL:
* In the configuration page, use JavaScript to retrieve a authorization code, which
@dimsis
dimsis / upload.cfc
Created Oct 5, 2012 — forked from jsteenkamp/upload.cfc
ColdFusion 8 code for Plupload file uploading including chunked transfers
View upload.cfc
<!--- coldfusion 8 version --->
<cfcomponent>
<cffunction name="plupload" access="remote" returntype="struct" returnformat="json" output="false">
<cfargument name="name" default="" />
<cfscript>
var uploadDir = expandPath('../assets/');
var uploadFile = uploadDir & arguments.NAME;
var response = {result = arguments.NAME, id = 0};
var result = {};
You can’t perform that action at this time.