This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public boolean equals(Object o){ | |
if (!(o instanceof MyObject)) | |
return false; | |
... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Akka.system().scheduler().schedule( | |
Duration.create(0, TimeUnit.MILLISECONDS), | |
Duration.create(5, TimeUnit.MILLISECONDS), //Frequency 5 minutes | |
new Runnable() { | |
public void run() { | |
Logger.debug("Run from Akka scheduler"); | |
} | |
}, | |
Akka.system().dispatcher() | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from config import config | |
__author__ = 'Tu Pham Phuong' | |
__create_date__ = '4/24/15' | |
from fabric.api import * | |
deploy_dir = '/home/tupp/code/api' | |
def development(): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.commons.collections.MapIterator; | |
import org.apache.commons.collections.map.LRUMap; | |
import java.util.ArrayList; | |
/** | |
* Created by Tu Pham Phuong - [email protected] on 6/30/15. | |
*/ | |
public class InMemoryCache<K, T> { |
NewerOlder