Skip to content

Instantly share code, notes, and snippets.

View SidneyAllen's full-sized avatar

Sidney Maestre SidneyAllen

View GitHub Profile
<script>
function waitForElm(selector) {
return new Promise(resolve => {
if (document.querySelector(selector)) {
return resolve(document.querySelector(selector));
}
const observer = new MutationObserver(mutations => {
if (document.querySelector(selector)) {
resolve(document.querySelector(selector));
using UnityEngine;
using System.Collections;
using System.Security.Cryptography;
using System;
using System.Text;
public class StackMob : MonoBehaviour
{
public const string acceptHeader = "application/vnd.stackmob+json; version=0"; // 0 = development, 1 = production
public const string apiKey = "e78a2646-d479-47b1-9ae5-65732c5eabdc"; // nixApp
<cfprocessingdirective pageencoding="utf-8" />
<!--- cfcontent is also important for unicode --->
<cfcontent type="text/html charset=utf-8">
<!--- set up the parameters --->
<cfset sConsumerKey = 'yourPublickey'> <!--- Paste your dev or prod keys here --->
<cfset sConsumerSecret = 'youPrivatekey'> <!--- Paste your dev or prod keys here --->
<cfset OAUTH_VERIFIER = '' /> <!--- You get back these when doing oauth registration --->
<cfset token = '' /> <!--- You get back these when doing oauth registrationt --->
<cfset tokenSecret = '' /> <!--- You get back these when doing oauth registration --->
@SidneyAllen
SidneyAllen / gist:4074105
Created November 14, 2012 19:14 — forked from ilbambino/gist:4038850
JavaScript StackMob SDK using OAuth 1.0
_.extend(StackMob, {
'ajax': function(model, params, method) {
var oauth = new OAuth({
consumerKey: 'XXXXXXXXXXXXXXXXXXXXXX',
consumerSecret: 'XXXXXXXXXXXXXXXXXXXXXXX'}
);
var success = params['success'];
var defaultSuccess = function(response, options) {
@SidneyAllen
SidneyAllen / app.js
Created October 15, 2012 17:43 — forked from aaronksaunders/app.js
complete stackmob appcelerator example
//
// app.js
//
// aaron@clearlyinnovative.com
// blog.clearlyinnovative.com
//
// @see http://stackmob.com
//
//
@SidneyAllen
SidneyAllen / StackMob.cs
Created August 30, 2012 19:37 — forked from nixbb/StackMob.cs
StackMob OAuth 2.0 Unity 3D Example
using UnityEngine;
using System.Collections;
using System.Security.Cryptography;
using System;
using System.Text;
public class StackMob : MonoBehaviour
{
public const string acceptHeader = "application/vnd.stackmob+json; version=0"; // 0 = development, 1 = production
public const string apiKey = "e78a2646-d479-47b1-9ae5-65732c5eabdc"; // nixApp