Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am yurique on github.
  • I am yurique (https://keybase.io/yurique) on keybase.
  • I have a public key ASDTY3DxGaiB3lvJpMf0c-bzEmOoE7UtCoM2NuA1sESZZAo

To claim this, I am signing this object:

View mc.ext
# jar(zip)
type/i/^Java\ archive\ data\ \(JAR\)
Open=%cd %p/uzip://
View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip
View gist:8277060
# First verify the version of Java being used is not SunJSK.
java -version
# Get the latest Sun Java SDK from Oracle http://www.oracle.com/technetwork/java/javase/downloads/jdk-7u1-download-513651.html
wget http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm
# Rename the file downloaded, just to be nice
mv jdk-7u1-linux-i586.rpm\?e\=1320265424\&h\=916f87354faed15fe652d9f76d64c844 jdk-7u1-linux-i586.rpm
# Install Java
View gist:3427095
class Person(var firstName: String, var lastName: String, var address: Address) {
def this() = this(null, null, null)
}
class Address(var city: String, var street: String) {
def this() = this(null, null)
}
val persons = getAListSomewhere();
val filtered = for { p <- persons if p.address.city == "Kyiv"} yield p
val adresses = (for { p <- persons } yield p.address).toSet
val filteredAdresses = (for { p <- persons if p.address.city == "Kyiv" } yield p.address).toSet
View gist:3427085
class Person(var firstName: String, var lastName: String, var address: Address) {
def this() = this(null, null, null)
}
class Address(var city: String, var street: String) {
def this() = this(null, null)
}
val persons = getAListSomewhere();
val filtered = persons.filter(_.address.city == "Kyiv")
val adresses = persons.map(_.address).toSet
View gist:3427081
class Person {
private String firstName;
private String lastName;
private Address address;
public Person() {
}
public Person(String firstName, String lastName, Address address) {
this.firstName = firstName;
this.lastName = lastName;
this.address = address;
@yurique
yurique / gist:1408645
Created Nov 30, 2011
jboss async context log
View gist:1408645
12:49:37,425 INFO [stdout] (http--127.0.0.1-8080-1) initial request
12:49:38,427 INFO [stdout] (Timer-1) counter: 0
12:49:38,431 INFO [stdout] (http--127.0.0.1-8080-1) sending data: Test data: 1322650178427
12:49:38,433 INFO [stdout] (http--127.0.0.1-8080-1) done: null
12:49:38,433 INFO [stdout] (http--127.0.0.1-8080-1) restarting async
12:49:38,434 INFO [stdout] (http--127.0.0.1-8080-1) async start
12:49:38,434 INFO [stdout] (http--127.0.0.1-8080-1) async complete
12:49:39,427 INFO [stdout] (Timer-1) counter: 1
12:49:40,427 INFO [stdout] (Timer-1) counter: 2
12:49:41,427 INFO [stdout] (Timer-1) counter: 3
@yurique
yurique / gist:1408639
Created Nov 30, 2011
tomcat async context log
View gist:1408639
initial request
counter: 0
sending data: Test data: 1322649537140
done: null
restarting async
async start
counter: 1
sending data: Test data: 1322649538139
done: null
restarting async