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(); |
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(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
- 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
//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
* 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
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
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
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy name="CSVReadService" startOnLoad="true" trace="disable" | |
transports="vfs" xmlns="http://ws.apache.org/ns/synapse"> | |
<target> | |
<property name="OUT_ONLY" value="true"/> | |
<inSequence> | |
<smooks config-key="smooks_conf"> | |
<input type="text"/> | |
<output type="xml"/> | |
</smooks> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<localEntry key="smooks_conf" xmlns="http://ws.apache.org/ns/synapse"> | |
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd"> | |
<!--Configure the CSVParser to parse the message into a stream of SAX events. --> | |
<resource-config selector="org.xml.sax.driver"> | |
<resource>org.milyn.csv.CSVParser</resource> | |
<param name="fields" type="string-list">id,name,email,phone</param> | |
<param name="ident" type="boolean">true</param> | |
</resource-config> | |
</smooks-resource-list> |
OlderNewer