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
class GPSDecoder: | |
def __init__(self, i2c=None): | |
if i2c is None: | |
from machine import I2C | |
i2c = I2C(0, mode=I2C.MASTER, pins=('G9', 'G8')) | |
self.i2c = i2c | |
self.buf = "" | |
self.clear() | |
def clear(self): | |
self.fixStatus = self.lat = self.lng = self.utcTime = None |
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'?> | |
<kml xmlns='http://www.opengis.net/kml/2.2'> | |
<Document> | |
<name>Roteiro Cowparade</name> | |
<Placemark> | |
<name>01 - Chitinha Cow</name> | |
<description><![CDATA[<img src="https://lh4.googleusercontent.com/proxy/A9T_ZLuZ7NVzkBWhoblPi-1tD6C00CCem-xnoX03K_QADmGMQ1Z-PSRoUFTsBWa-7WPWOeXDdXbEkG7NG0LVXwZra-Y" height="200" width="auto" /><br><br>Artista: ALEX GARCIA<br>Patrocínio: Extrafarma]]></description> | |
<styleUrl>#icon-503-DB4436</styleUrl> | |
<ExtendedData> | |
<Data name='gx_media_links'> |
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
``` | |
$ mvn -Pdeploy | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building lambada-functions 0.0.1-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
Downloading: https://repo.maven.apache.org/maven2/br/com/ingenieux/beanstalk-maven-plugin/1.4.2/beanstalk-maven-plugin-1.4.2.pom | |
Downloaded: https://repo.maven.apache.org/maven2/br/com/ingenieux/beanstalk-maven-plugin/1.4.2/beanstalk-maven-plugin-1.4.2.pom (3 KB at 1.6 KB/sec) | |
Downloading: https://repo.maven.apache.org/maven2/br/com/ingenieux/beanstalker/1.4.2/beanstalker-1.4.2.pom |
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
void setup() { | |
delay(10000); | |
Keyboard.begin(); | |
} | |
const char* msg = "// vai tomar bem no meio da rodinha do olho do cu"; | |
void loop() { | |
for (char* c = (char*) msg; *c; c++) { |
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 Original: https://github.com/lukas-krecan/json2xml/blob/master/src/main/java/net/javacrumbs/json2xml/JsonSaxAdapter.java | |
import com.google.common.collect.ImmutableMap; | |
import com.fasterxml.jackson.core.JsonFactory; | |
import com.fasterxml.jackson.core.JsonParser; | |
import com.fasterxml.jackson.core.JsonToken; | |
import org.xml.sax.Attributes; | |
import org.xml.sax.ContentHandler; |
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
"function" != typeof String.prototype.a && (String.prototype.a = function (a) { | |
return this.slice(0, a.length) == a | |
}); | |
var c = 0, | |
d = 1; | |
function e() { | |
var a = document.getElementById("sf"); | |
document.body.removeChild(a); | |
a = document.createElement("object"); |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>br.com.tasafo</groupId> | |
<artifactId>yoursite</artifactId> | |
<packaging>pom</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<hostname>yoursite.com</hostname> |
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
> mvn -X integration-test verify | |
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 12:22:22-0300) | |
Maven home: C:\apps\apache-maven-3.1.1 | |
Java version: 1.7.0_45, vendor: Oracle Corporation | |
Java home: C:\apps\jdk\jre | |
Default locale: en_US, platform encoding: Cp1252 | |
OS name: "windows 8", version: "6.2", arch: "amd64", family: "windows" | |
[INFO] Error stacktraces are turned on. | |
[DEBUG] Reading global settings from C:\apps\apache-maven-3.1.1\conf\settings.xml | |
[DEBUG] Reading user settings from C:\Users\Aldrin\.m2\settings.xml |
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 yourcompany.camel.metrics; | |
import com.codahale.metrics.MetricRegistry; | |
import org.apache.camel.Exchange; | |
import org.apache.camel.management.event.AbstractExchangeEvent; | |
import org.apache.camel.management.event.ExchangeCompletedEvent; | |
import org.apache.camel.management.event.ExchangeFailedEvent; | |
import org.apache.camel.management.event.ExchangeRedeliveryEvent; | |
import org.apache.camel.support.EventNotifierSupport; | |
import org.joda.time.Period; |
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
<plugin> | |
<groupId>br.com.ingenieux</groupId> | |
<artifactId>beanstalk-maven-plugin</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<configuration> | |
<applicationName>myapp</applicationName> | |
<environmentName>myenv</environmentName> | |
<useStagingDirectory>true</useStagingDirectory> | |
<skipEnvironmentUpdate>true</skipEnvironmentUpdate> | |
</configuration> |
NewerOlder