Skip to content

Instantly share code, notes, and snippets.

View KevinTCoughlin's full-sized avatar

Kevin T. Coughlin KevinTCoughlin

View GitHub Profile
@KevinTCoughlin
KevinTCoughlin / tumblr-oauth-client.js
Last active August 29, 2015 14:06
Tumblr OAuth Client for Windows 8/8.1
(function () {
"use strict";
/**
* Tumblr OAuth Client
*/
WinJS.Namespace.define('TumblrOAuth', {
client: WinJS.Class.define(function (consumerKey, consumerSecret) {
this._consumerKey = consumerKey;
this._consumerSecret = consumerSecret;
/**
* Process an array of data synchronously.
*
* @param data An array of data.
* @param processData A function that processes an item of data.
* Signature: function(item, i, callback), where {@code item} is the i'th item,
* {@code i} is the loop index value and {@code calback} is the
* parameterless function to call on completion of processing an item.
*/
function doSynchronousLoop(data, processData, done) {
@KevinTCoughlin
KevinTCoughlin / gist:2997921
Created June 26, 2012 18:49 — forked from msluyter/gist:1925069
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after