I hereby claim:
- I am whaley on github.
- I am whaley (https://keybase.io/whaley) on keybase.
- I have a public key whose fingerprint is DB95 6AEB 09C2 F6E8 EDDB B6F5 FC1C 1F75 EF13 47D5
To claim this, I am signing this object:
| package a; | |
| public class A { | |
| int foo = 42; | |
| } | |
| ------------- | |
| package a; |
| ➜ foo mkdir src/main/resources/package/name/here | |
| ➜ foo touch src/main/resources/package/name/here/foo.properties | |
| ➜ foo mvn clean package | |
| [INFO] Scanning for projects... | |
| [INFO] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building GoProConnector 0.1.0 | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] | |
| [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ GoProConnector --- |
I hereby claim:
To claim this, I am signing this object:
| import scala.util.Random | |
| sealed trait Prize | |
| case object Car extends Prize | |
| case object Goat extends Prize | |
| object Montyhall { | |
| def main(args: Array[String]) { | |
| val runs = 10000000 | |
| val (cars,_) = |
| <plugin> | |
| <groupId>org.apache.maven.plugins</groupId> | |
| <artifactId>maven-enforcer-plugin</artifactId> | |
| <executions> | |
| <!-- JDK7 and Maven 3.0.3+ are expected --> | |
| <execution> | |
| <id>enforce-environment-versions</id> | |
| <goals> | |
| <goal>enforce</goal> |
I hereby claim:
To claim this, I am signing this object:
| package eat.me; | |
| import com.fasterxml.jackson.annotation.JsonSetter; | |
| import com.fasterxml.jackson.databind.JsonNode; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| public class JacksonTest { | |
| private static final String EXAMPLE = "{\"email\": {\"addr\":\"e@example.com\"}}"; | |
| public static void main(String[] args) throws Exception { |
| @JsonAnySetter | |
| @SuppressWarnings("unused") //called by jackson | |
| private void setUnknownProperty(String key, JsonNode value) { | |
| extraProperties.put(key, value); | |
| } | |
| @JsonAnyGetter | |
| @SuppressWarnings("unused") //called by Jackson | |
| private Map<String, JsonNode> getUnknownProperty() { | |
| return extraProperties; |
| package com.jasonwhaley; | |
| /** | |
| * Hello world! | |
| */ | |
| public class App { | |
| public static void main(String[] args) throws Exception { | |
| Object anon = new Abstract() { | |
| @Override | |
| void foo() { |
| @Test | |
| public void testObjectNodesWithKeysInDifferentOrder() { | |
| ObjectNode a = JsonNodeFactory.instance.objectNode(); | |
| a.put("foo",1); | |
| a.put("bar",2); | |
| ObjectNode b = JsonNodeFactory.instance.objectNode(); | |
| b.put("bar",2); | |
| b.put("foo",1); |