Skip to content

Instantly share code, notes, and snippets.

View computermacgyver's full-sized avatar

Scott Hale computermacgyver

View GitHub Profile
@dimsis
dimsis / upload.cfc
Created October 5, 2012 10:16 — forked from jsteenkamp/upload.cfc
ColdFusion 8 code for Plupload file uploading including chunked transfers
<!--- 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 = {};
@zostay
zostay / README.txt
Last active October 18, 2022 05:03
Google Authentication Workflow for Pebble Watchapps
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