Skip to content

Instantly share code, notes, and snippets.

View trajano's full-sized avatar
🖖
https://t.me/s/tracer_needs_a_buff

Archimedes Trajano trajano

🖖
https://t.me/s/tracer_needs_a_buff
View GitHub Profile
@trajano
trajano / gist:9626235
Created March 18, 2014 18:24
NonRelativizingDecorationModelInheritanceAssembler
package net.trajano.maven.doxia.site.decoration.inheritance;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
@trajano
trajano / gist:5941038
Created July 6, 2013 19:50
Snipet of manifest-update
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<executions>
<execution>
<id>update-manifest</id>
<phase>process-resources</phase>
<goals>
<goal>manifest-update</goal>
</goals>
@trajano
trajano / ZXingTest.java
Created June 1, 2013 12:12
Creating a QR Code using ZXING
import java.io.FileOutputStream;
import java.io.IOException;
import org.junit.Test;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.Writer;
import com.google.zxing.WriterException;
import com.google.zxing.client.j2se.MatrixToImageWriter;
import com.google.zxing.common.BitMatrix;
// drop and insert data
db.books.drop();
db.books.insert({
"title": "End to End Enterprise Architecture",
"authors": ["Archimedes Trajano"]
});
db.books.insert({
"title": "Deadpool: The Proper Screenplay",
"authors": ["Archimedes Trajano",
"Will Wheaton",