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
public void createSystemUser(BundleContext bundleContext) { | |
ServiceReference SlingRepositoryFactoryReference = bundleContext.getServiceReference(SlingRepository.class.getName()); | |
SlingRepository repository = (SlingRepository)bundleContext.getService(SlingRepositoryFactoryReference); | |
Session session = null; | |
try { | |
session = repository.loginAdministrative(null); | |
UserManager usrMgr = ((JackrabbitSession)session).getUserManager(); | |
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
find . -name "*pyc" -exec git rm -f {} \; |
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
* Fonte a Jorrar- select * from rss where url='http://fonteajorrar.blogspot.com/feeds/posts/default?alt=rss' | |
* Biblia Online - select * from html where url="http://www.bibliaonline.com.br/" and xpath='/html/body/p[@class="ot verse" or @class="nt verse"]' | |
select * from html where url="http://www.bibliaonline.com.br/" and xpath="/html/body/p[@class=\'ot verse\']" | |
select * from html where url="http://www.bibliaonline.com.br/" and xpath="/html/body/p[@class=\'nt verse\']" |
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
//Criando um objeto | |
meuObjeto = {} | |
myObject = new Object() | |
date = new Date() | |
array = new Array() | |
//Definindo uma classe |
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
- Criando um objeto | |
var meuObjeto = {} | |
- Definindo uma classe | |
function Pessoa(){ | |
} | |
- Instanciando uma Pessoa | |
var p = new Pessoa() | |
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
MyClass = function(attrValue){ | |
this.attribute = attrValue; | |
} | |
var instance = new MyClass("Hello Class"); | |
alert(instance.attribute); |
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
MyClass = function(){ | |
this.attribute = 'Hello'; | |
} | |
var instance = new MyClass(); | |
alert(instance.attribute); |
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
MyClass = function(){ | |
} | |
var instance = new MyClass(); |
NewerOlder