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
// Make sure you added pm2 as a dependency in your package.json | |
// Then in your Procfile, do a simple `node bootstrap.js` | |
var pm2 = require('pm2'); | |
var MACHINE_NAME = 'hk1'; | |
var PRIVATE_KEY = 'z1ormi9vomgq66'; | |
var PUBLIC_KEY = 'oa0m7nuhdfibi16'; | |
var instances = process.env.WEB_CONCURRENCY || 1; // Set by Heroku |
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
import Facebook from 'appkit/initializers/facebook'; | |
var FacebookAuthenticator = Ember.SimpleAuth.Authenticators.OAuth2.extend({ | |
authenticate: function() { | |
var _this = this; | |
return new Ember.RSVP.Promise(function(resolve, reject) { | |
FB.getLoginStatus(function(response) { | |
if (response.status === 'connected') { | |
_this.facebookCallback().then(function(response) { | |
var expiresAt = _this.absolutizeExpirationTime(response.expires_in); |
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
(function ($, window, undefined) { | |
$.fn.extend({ | |
check2: function(option) { | |
var check2Class = 'check2', | |
conf = { | |
check2Class: check2, | |
offscreenClass: 'offscreen', | |
fontSize: '1.2em', | |
hasCheck2Class: [ |