Code Snippet

Just another Code Snippet site

Random Post :




[Maven] Install external Library/JAR into local Maven repository

Without pom file :

mvn install:install-file -DgroupId=<your_group_name>  \
-DartifactId=<your_artifact_name>  \
-Dversion=<snapshot>  \
-Dfile=<path_to_your_jar_file>  \
-Dpackaging=jar \
-DgeneratePom=true

With a pom file :

mvn install:install-file -Dfile=<path-to-file> -DpomFile=<path-to-pomfile>

[Maven] Execute SSH Bash command

	<!-- Run remote command (deploy nohup) -->
	<plugin>
		<groupId>com.github.goldin</groupId>
		<artifactId>sshexec-maven-plugin</artifactId>
		<version>0.2.5</version>
		<executions>
			<execution>
				<id>update-app</id>
				<phase>install</phase>
				<goals>
					<goal>sshexec</goal>
				</goals>
				<configuration>
					<location>scp://${deploy.user}:${deploy.password}@${deploy.host}:${deploy.script.path}</location>
					<command>./deployApp.sh</command>
				</configuration>
			</execution>
		</executions>
	</plugin>

sshexec-maven-plugin

, ,

[Arduino] Bases & Tutos

zestedesavoir.com
http://zestedesavoir.com/tutoriels/537/arduino-premiers-pas-en-informatique-embarquee/?page=1

http://fr.flossmanuals.net/arduino/les-bases-de-lelectronique/

RTC :
http://electroniqueamateur.blogspot.ca/2013/06/une-horloge-pour-votre-arduino-real.html

Ethernet + GET :
http://electroniqueamateur.blogspot.ca/2013/08/data-logging-avec-carriots-arduino-et.html

SD :
http://electroniqueamateur.blogspot.com/2013/06/saisie-de-donnees-data-logging-avec-un.html

[Java] BigDecimal

Rounding :

 new BigDecimal(1.5555).setScale(2, RoundingMode.HALF_UP);

Divide :

new BigDecimal(1).divide(rate1).setScale(2, RoundingMode.HALF_UP);

Previous Posts Next posts