Skip to content

Instantly share code, notes, and snippets.

@jmayaalv
jmayaalv / 0_reuse_code.js
Last active August 29, 2015 14:26
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
if (entity.getEntityType().equals(Org.ENTITY_TYPE)) {
memberGroups = this.securityGroupDao.findByOrg(entity.getId());
} else if (entity.getEntityType().equals(User.ENTITY_TYPE)) {
memberGroups = this.securityGroupDao.findByUser(entity.getId());
} else {
throw new Runt