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
<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)); |
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
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 |
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
<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 ---> |
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
_.extend(StackMob, { | |
'ajax': function(model, params, method) { | |
var oauth = new OAuth({ | |
consumerKey: 'XXXXXXXXXXXXXXXXXXXXXX', | |
consumerSecret: 'XXXXXXXXXXXXXXXXXXXXXXX'} | |
); | |
var success = params['success']; | |
var defaultSuccess = function(response, options) { |
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
// | |
// app.js | |
// | |
// aaron@clearlyinnovative.com | |
// blog.clearlyinnovative.com | |
// | |
// @see http://stackmob.com | |
// | |
// |
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
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 |