Skip to content

Instantly share code, notes, and snippets.

View jottley's full-sized avatar

Jared Ottley jottley

View GitHub Profile
@kylefernandadams
kylefernandadams / SimpleDynamicAuthority
Created July 14, 2014 14:57
Alfresco - Simple Dynamic Authority
package org.alfresco.extension;
import java.util.Set;
import org.alfresco.repo.security.permissions.DynamicAuthority;
import org.alfresco.repo.security.permissions.PermissionReference;
import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.namespace.QName;
@danielestevez
danielestevez / gist:2044589
Last active April 10, 2024 07:51
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}
function createElement(tag) {
return document.createElement(tag);
}
var addOption = function (combo, text, value) {
/* Note by jdopazo:
Lazy initialization for the function _add()
I create a <select> element that I never attach to the dom
and try to attach an <'option'> element to it with try...catch
This way I avoid using try...catch every time this function is called */