Skip to content

Instantly share code, notes, and snippets.

View rhyek's full-sized avatar

Carlos González rhyek

View GitHub Profile
@rhyek
rhyek / application.js
Last active May 28, 2016 09:09
OAuth2 authenticator for use with Ember Simple Auth with several features added
/** @module app/authenticators/application */
import Ember from 'ember';
import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant';
const { isEmpty, RSVP, run, assign } = Ember;
/** need ember-browserify */
import UUID from 'npm:node-uuid';
const refreshTokenTabKey = 'refresh-token-tab';
const shouldInvalidateRefreshTokenTabKey = 'should-invalidate-refresh-token-tab';
@rhyek
rhyek / MyRushObject.java
Last active December 3, 2015 21:44
RushOrm @IdentityColumn annotation
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface IdentityColumn {}
public class MyRushObject extends RushObject {
@RushIgnore
public transient boolean _didRegisterObjectId = false;
@RushIgnore
private transient String _identityValue;