Skip to content

Instantly share code, notes, and snippets.

import java.io.InputStream;
import java.util.LinkedList;
public class Calculator {
private double total = 0, zero=0;
private void reset(){total = 0;}
public int getTotal(){return total;}
public void sum(double value){total+=value;}
public void pow(double value) {
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.2:jar (attach-javadocs) on project javalang-compiler: Error while creating archive:Exit code: 1 - /Users/raquelpau/github/javalang-compiler/src/main/java/org/walkmod/javalang/compiler/symbols/AnonymousClassUtil.java:18: warning: no @param for n
[ERROR] public static boolean needsSymbolData(ObjectCreationExpr n) {
[ERROR] ^
[ERROR] /Users/raquelpau/github/javalang-compiler/src/main/java/org/walkmod/javalang/compiler/symbols/AnonymousClassUtil.java:18: warning: no @return
[ERROR] public static boolean needsSymbolData(ObjectCreationExpr n) {
[ERROR] ^
[ERROR] /Users/raquelpau/github/javalang-compiler/src/main/java/org/walkmod/javalang/compiler/symbols/SymbolType.java:246: warning: no @param for name
[ERROR] public void setName(String name) {
[ERROR] ^
[ERROR] /Users/raquelpau/github/javalang-compiler/src/main/java/org/walkmod/javalang/compiler/symbols/Symb
@rpau
rpau / Dockerfile
Created March 16, 2018 17:39
docker file for SNS
FROM s12v/sns:0.3.5
HEALTHCHECK --interval=1s --timeout=2s --retries=10 CMD aws sns --endpoint-url http://localhost:9911 list-topics
<?xml version="1.0"?>
<arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://jboss.org/schema/arquillian"
xsi:schemaLocation="http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
<!-- We have to bind the docker hostname and port, otherwise RMI will choose a random port, which we can't forward to the docker host.
RMI is a difficult protocol to configure :(. -->
<extension qualifier="docker">
{
"action": "unassigned",
"number": 373,
"pull_request": {
"url": "https://github.schibsted.io/api/v3/repos/spt-engprod/skynet/pulls/373",
"id": 160796,
"html_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373",
"diff_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373.diff",
"patch_url": "https://github.schibsted.io/spt-engprod/skynet/pull/373.patch",
"issue_url": "https://github.schibsted.io/api/v3/repos/spt-engprod/skynet/issues/373",
#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@declarative') _
pipeline {
agent any
stages {
stage ('Fixing Release'){
steps {
@rpau
rpau / Jenkinsfile
Last active May 4, 2017 16:25
Jenkinsfile fragment for walkmod
#!groovy
@Library('github.com/walkmod/jenkins-pipeline-shared@maven') _
pipeline {
agent any
stages {
stage ('Fixing Release'){
steps {
walkmodApply(
@rpau
rpau / Jenkinsfile
Last active March 13, 2017 18:14
Jenkinsfile example
#!groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
sh "mvn package"
}
<properties>
<walkmod.chains>pmd</walkmod.chains>
<walkmod.properties>configurationFile=ruleset.xml</walkmod.properties>
</properties>
<plugin>
<groupId>org.walkmod.maven.plugins</groupId>
<artifactId>walkmod-maven-plugin</artifactId>
<version>1.0.3</version>
</plugin>