Skip to content

Instantly share code, notes, and snippets.

View alexo's full-sized avatar

Alex Objelean alexo

View GitHub Profile
<markdown>
Test1
#!java
public static void main(String[] args) {
System.out.println("Hello World");
}
</markdown>
@alexo
alexo / gist:1406271
Created November 29, 2011 20:14 — forked from anonymous/gist:1406238
Yammer moving away from Scala
Originally:
https://gist.github.com/7565976a89d5da1511ce
Hi Donald (and Martin),
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I
appreciate the tone. This is a Yegge-long response, but given that you and
Martin are the two people best-situated to do anything about this, I'd rather
err on the side of giving you too much to think about. I realize I'm being very
critical of something in which you've invested a great deal (both financially
@alexo
alexo / notes.markdown
Created January 10, 2012 20:19 — forked from matthewmccullough/notes.markdown
January GitHub Git Foundations Class Notes

January GitHub Git Foundations Class Notes

How did you do that init again?

git init project2
cd project2
git status
mate index.html
git status
@alexo
alexo / pr.md
Created August 14, 2012 07:49 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

<dependency>
<groupId>com.betfair.libraries.mockable</groupId>
<artifactId>mockable-core</artifactId>
</dependency>
public class MyController {
@Mockable
private CASService casService;
}
public class FirstController {
@Mockable(defaultMockImplementation = DefaultMockImplementation.ALWAYS_THROWS_EXCEPTION)
private CASService casService;
}
public MockCASService implements CASService {
}
META-INF/services/com.betfair.mock.MockCASService
public class Person {
public final String name;
public final int age;
Person(final String name, final int age) {
this.name = name;
this.age = age;
}
}