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
' Create Client | |
Dim Client As New RestClient | |
Client.BaseUrl = "https://..." | |
' Create HttpBasicAuthenticator | |
' https://github.com/timhall/Excel-REST/tree/master/authenticators | |
Dim Auth As New HttpBasicAuthenticator | |
Auth.Setup "Username", "Password" | |
' Add Authenticator to Client |
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 https://api.smartsheet.com/1.1/row/{rowId}/cells \ | |
Dim Request As New RestRequest | |
Request.Resource = "row/{rowId}/cells" | |
Request.AddUrlSegment "rowId", "RowId..." | |
' -H "Authorization: Bearer ACCESS_TOKEN" \ | |
Request.AddHeader "Authorization", "Bearer ACCESS_TOKEN is set in authenticator" | |
' -H "Content-Type: application/json" \ | |
Request.RequestFormat = json |
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
// Updated requestAnimationFrame polyfill that uses new high-resolution timestamp | |
// | |
// References: | |
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// https://gist.github.com/1579671 | |
// http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision | |
// | |
// Note: this is my initial stab at it, *requires additional testing* | |
(function () { |
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
var Parent = function (name) { | |
var _parent = this; | |
_parent.name = name; | |
} | |
Parent.prototype.sayHi = function () { | |
return 'Hi ' + this.name + '!'; | |
} | |
Parent.sayHowdy = function () { return 'Howdy!' } | |
extendable(Parent); | |
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
// Subclass given parent class and extend with prototype and static properties | |
// (inherits helper from Backbone.js) | |
var inherits = function (parent, protoProps, staticProps) { | |
var child; | |
if (protoProps && protoProps.hasOwnProperty('constructor')) { | |
child = protoProps.constructor; | |
} else { | |
child = function () { parent.apply(this, arguments); }; | |
} |
NewerOlder