This file contains hidden or 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 module = angular.module('facebook', []); | |
module.constant('facebookInit', function(facebookAppID) { | |
var initialized = false; | |
return function($q) { | |
if (initialized) { | |
return; |
This file contains hidden or 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
Parse.Cloud.beforeSave("TestObject", function(request, response) { | |
ensureNotStale(request.object, response.error, function() { | |
// Update is not stale. Add any other code here | |
console.log('doing some work here with the fresh object'); | |
response.success(); | |
}); | |
}); |
This file contains hidden or 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
define([ | |
'parse' | |
], function() { | |
describe('Quick & Dirty Parse Conflict Test', function() { | |
var async = new AsyncSpec(this); | |
var TestObject; | |
beforeEach(function() { | |
TestObject = Parse.Object.extend("TestObject"); |
This file contains hidden or 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
public static class WcfClientWrapper | |
{ | |
public static WcfClientWrapper<TClientInterface> Create<TClientInterface>(ChannelFactory<TClientInterface> channelFactory) | |
{ | |
return new WcfClientWrapper<TClientInterface>(channelFactory); | |
} | |
} | |
public class WcfClientWrapper<TClientInterface> : IDisposable | |
{ |