Skip to content

Instantly share code, notes, and snippets.

@edpichler
edpichler / pom.xml
Created July 2, 2012 20:40
Maven Aspectj Plugin with compilance level
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>aspectj-maven-plugin</artifactId>
<version>1.4</version><!--$NO-MVN-MAN-VER$ -->
<executions>
<execution>
<id>compile_with_aspectj</id>
<goals>
<goal>compile</goal>
</goals>
‹ ¬ŽQ
à †v‘À.?XÛ’Gç
U‡éýϲΠ­l
ý^b~b¾<4[(à
a? iÆÎc?}r…;„YüL„DöbÜž
Ûj-í÷ÊO ?ˆŽÈÔk]ç¨VutâþÈ Ýý*CaaæÕôÊÉ:‘.Z—³y&ˆ)3w©ñö ÿÿ º[›¾
‹ ¬ŽQ
à †v‘À.?¨mÉ£s
…©ÃôþgYç„V6
ƒ~/1?1_n†Tp…p‘ Ž“Ÿ8Ìï\!Âa–0G›à ‘}‡˜¶gǶ„zKÿ½ñ•($"…²6jhsÔª::ñ~È+úz–¡²0ójz–ì¼HŸœ/ÅÞ3¤\¢}DŸªñò ÿÿ yq°
De:
buff.append(BufferUtils.appendPadRight(this.applicationDetails.getGender() , 1));
buff.append(BufferUtils.appendPadRight(this.applicationDetails.getMaritalStatus(), 1));
Para:
buff.append(BufferUtils.appendPadRight(this.applicationDetails.getGender() , 1));
buff.append(BufferUtils.appendPadRight(this.applicationDetails.getMaritalStatus(), 1));
@edpichler
edpichler / gist:1366689
Created November 15, 2011 10:27
Resizing Oracle Vm HD
C:\Program Files\Oracle\VirtualBox>VBoxManage.exe modifyhd "D:\Users\eduardo.pichler\VirtualBox VMs\win7" --resize 30720
@edpichler
edpichler / Animal.java
Last active February 12, 2024 18:29
Java AWT/Swing with Drag and Drop.
public class Animal {
private String name;
private int age;
public Animal() {
name = "Name " + System.currentTimeMillis();
age = (int) +System.currentTimeMillis();
}
<mx:DataGrid x="18" y="619" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getObjetosResult.lastResult}">
<mx:columns>
<mx:DataGridColumn headerText="otherPart" dataField="otherPart"/>
<mx:DataGridColumn headerText="objeto" dataField="objeto"/>
<mx:DataGridColumn headerText="string" dataField="string"/>
<mx:DataGridColumn headerText="double" dataField="double"/>
<mx:DataGridColumn headerText="objetos" dataField="objetos"/>
</mx:columns>
</mx:DataGrid>
public CompositeObject[] getObjetos(){
CompositeObject[] obj = new CompositeObject[10];
for (int i = 0; i < 10; i++) {
obj[i] = new CompositeObject();
}
return obj;
}
public class CompositeObject{
public Double getDouble(){
public class AppengineMemCacheMap implements IQuoteCache {
private Cache cache;
public AppengineMemCacheMap() {
Map props = new HashMap();
props.put(GCacheFactory.EXPIRATION_DELTA, 60);// seconds
try {
package com.edpichler.bovespa.process.appengine;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import net.sf.jsr107cache.CacheException;
import net.sf.jsr107cache.CacheFactory;
public class StockQuote extends Quote implements ICodeQuote , Serializable{
public static ICodeQuote createFrom(IQuote quote) {
StockQuote q = new StockQuote();
q.setAbertura(quote.getAbertura());
q.setCodigo(quote.getCodigo());
q.setData(quote.getData());
q.setMaximo(quote.getMaximo());
q.setMedio(quote.getMedio());
q.setMinimo(quote.getMinimo());