Skip to content

Instantly share code, notes, and snippets.

/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 13.app/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre/lib/javaws.jar:/Libra
@cbeams
cbeams / -
Created August 26, 2014 15:48
$ git log -1
commit 77431b3d94b3858b4c9ec4fce893123ec4000a65 (HEAD, origin/master, origin/HEAD, master)
Author: Manfred Karrer <mk@nucleo.io>
Date: Tue Aug 26 17:44:55 2014 +0200
added comments
cbeams@vix:~/Desktop/bitsquare/bitsquare[master]
$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
@cbeams
cbeams / -
Created August 26, 2014 15:47
cbeams@vix:~/Desktop/bitsquare/bitsquare[(98c6e34...)]
$ git co 98c6e34
HEAD is now at 98c6e34... fixed utest, update formatting added comments
cbeams@vix:~/Desktop/bitsquare/bitsquare[(98c6e34...)]
$ mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/Cellar/maven/3.2.1/libexec
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
Verifying that +cbeams is my Bitcoin username. You can send me #bitcoin here: https://onename.io/cbeams

Keybase proof

I hereby claim:

  • I am cbeams on github.
  • I am cbeams (https://keybase.io/cbeams) on keybase.
  • I have a public key whose fingerprint is 1E30 3130 08A7 8C74 3F4E 4197 3D21 4F8F 5BC5 ED73

To claim this, I am signing this object:

[4/30/14, 11:12:59 AM] Chris Beams: Hey, did you see this? https://twitter.com/david_welch/status/461190856364404737
[4/30/14, 11:13:48 AM] Chris Beams: Not sure if the ability to specify generic types made its way in (in a way that can be used from within a BDRPP) with the changes for generic collection autowiring...
[4/30/14, 11:14:23 AM] Juergen Hoeller: hmm, that hasn't been made possible... with any of our bean definition styles
[4/30/14, 11:14:41 AM] Chris Beams: yeah, I took a look through the hierarchy and didn't see anything to that effect.
[4/30/14, 11:14:49 AM] Juergen Hoeller: we only match against actually declared generic types in the target bean class or the target factory method's return type
[4/30/14, 11:15:02 AM] Juergen Hoeller: so in that sense, I suppose it is possible with @Bean methods
[4/30/14, 11:15:26 AM] Juergen Hoeller: but only to the extent as it is possible with any kind of factory method
[4/30/14, 11:15:29 AM] Chris Beams: yeah.
[4/30/14, 11:15:54 AM] Juergen Hoeller: in princi
@cbeams
cbeams / test.adoc
Last active December 26, 2015 10:48

h1

h2

h3

h4

$bin>./xd-shell
Welcome to the Spring XD shell. For assistance hit TAB or type "help".

xd:>stream create --name httpStream --definition "http | file"

xd:>tap create --name httpTap --definition "tap httpStream | counter"

xd:>http post --target http://localhost:9000 --data "helloworld"
@Configuration
public class CoreConfig {
@Bean
public OrderService createService(OrdersRepository repo) {
return new OrderEventHandler(repo);
}
@Bean
public OrdersRepository createRepo() {
return new OrdersMemoryRepository(new HashMap<UUID, Order>());
interface PersonRepository extends Repository<Person, Long> {
@Query("select p from Person p where p.lastname like %?1")
List<Person> findByLastname(String lastname);
}