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
package er.extensions.eof; | |
import java.util.function.BiConsumer; | |
import java.util.function.Consumer; | |
import com.webobjects.eocontrol.EOEditingContext; | |
import com.webobjects.eocontrol.EOEnterpriseObject; | |
import com.webobjects.eocontrol.EOFetchSpecification; | |
import com.webobjects.foundation.NSArray; |
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
package org.wocommunity.eof; | |
import com.webobjects.eocontrol.EOEnterpriseObject; | |
import com.webobjects.eocontrol.EOQualifier.ComparisonSupport; | |
import com.webobjects.foundation.NSKeyValueCoding; | |
import er.extensions.eof.ERXEOControlUtilities; | |
/** | |
* The {@code EOComparisonSupport} extends the {@code EOQualifier.ComparisonSupport} class and evaluates all |
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
/** | |
* Exemplo de uso do <code>X509TrustManagerCombinado</code>. | |
*/ | |
public class App { | |
public static void main(String[] args) throws Exception { | |
// Configura o contexto SSL para utilizar um trust manager customizado | |
SSLContext sslContext = SSLContext.getInstance("SSL"); | |
sslContext.init(null, new TrustManager[] { new X509TrustManagerCombinado(new File("/etc/ssl/certs")) }, null); |
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
{ | |
"nfe.NFe": { | |
"nfe.infNFe": { | |
"@versao": "3.10", | |
"nfe.dest": { | |
"nfe.CPF": "22233344405", | |
"nfe.enderDest": { | |
"nfe.CEP": "09876559", | |
"nfe.UF": "SP", | |
"nfe.cMun": "3550308", |
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
<?php | |
/* | |
smk_magento_resizer.php | |
Resizes Images for isolated/specific magento (admin) server | |
Created By: Samuel Maciel Sampaio ([email protected]) [20130828] | |
References where I got the core: | |
http://stackoverflow.com/questions/2474117/how-to-get-a-products-image-in-magento |
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
// 35 é o código de SP | |
Integer codigoUf = 35; | |
// 2 é o código de outros | |
Integer formaPagamento = 2; | |
// Está sendo emitido nesse instante | |
DateTime dataEmissao = new DateTime(); | |
// Série da nota fiscal |
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
{ | |
"easynfe.certData":"certificado-em-BASE64", | |
"easynfe.certPasswd":"senha-certificado" | |
} |
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
{ | |
"nfe.NFe":{ | |
"nfe.infNFe":{ | |
"@versao":"2.00", | |
"nfe.ide":{ | |
"nfe.cUF":"35", | |
"nfe.natOp":"1", | |
"nfe.indPag":"1", | |
"nfe.mod":"55", | |
"nfe.serie":"1", |
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
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
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
package br.com.easynfe.utils | |
import scala.io.Codec.charset2codec | |
import scala.io.Codec | |
import scala.io.Source | |
import org.apache.commons.codec.binary.Base64 | |
import com.sun.jersey.api.client.config.DefaultClientConfig | |
import com.sun.jersey.api.client.Client |
NewerOlder