Skip to content

Instantly share code, notes, and snippets.

@mox601
mox601 / TakeUntilTestCase.java
Last active August 29, 2015 14:14
TakeUntilTestCase
package fm.mox.spikes.rx;
import org.testng.annotations.Test;
import rx.Observable;
import rx.Observer;
import rx.Subscriber;
import rx.Subscription;
import static org.easymock.EasyMock.createMock;
import static org.easymock.EasyMock.expectLastCall;
import org.apache.commons.pool2.impl.GenericObjectPoolConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.Test;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPubSub;
import redis.clients.jedis.exceptions.JedisConnectionException;
import static org.testng.Assert.assertNotNull;
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
2015-06-11 10:36:35,718/UTC [RxComputationThreadPool-1] INFO com.ftr.finder.streaming.views.content.ContentObservable - status was excluded due to blacklist itemsStatusJSONImpl{createdAt=Thu Jun 11 05:36:05 UTC 2015, id=608870296825679873, text='【地震情報】11日14:30頃、三陸沖でM4.7の地震発生、最大震度1。震源は地下約10km。この地震による津波の心配はありません。 #地震 #jishin #災害 #saigai #岩手県 http://t.co/Gz6FtAsZA1', source='<a href="http://dokasen.com/" rel="nofollow">地震うさぎ</a>', isTruncated=false, inReplyToStatusId=-1, inReplyToUserId=-1, isFavorited=false, isRetweeted=false, favoriteCount=11, inReplyToScreenName='null', geoLocation=GeoLocation{latitude=39.6, longitude=144.1}, place=null, retweetCount=42, isPossiblySensitive=false, lang='ja', contributorsIDs=[], retweetedStatus=null, userMentionEntities=[], urlEntities=[], hashtagEntities=[HashtagEntityJSONImpl{text='地震'}, HashtagEntityJSONImpl{text='jishin'}, HashtagEntityJSONImpl{text='災害'}, HashtagEntityJSONImpl{text='saigai'}, HashtagEntityJSONImpl{text='岩手県'}], mediaEntities=[MediaEntityJSONImpl{id=6088
[
{
"url": "https://instagram.com/p/4jrzXsrZkN/",
"title": "Instagram",
"popularity": 2,
"tweets": [
{
"createdAt": "2015-06-30T17:01:18.000+02:00",
"id": 615897905300394000,
"id_str": "615897905300393985",
[
{
"url": "https://instagram.com/p/4lf-TTBms7/",
"title": "Instagram",
"popularity": 1332,
"tweets": [
{
"createdAt": "2015-07-01T08:44:49.000Z",
"id": 616165551078023200,
"id_str": "616165551078023168",
package examples.git;
public class Circle {
private int x;
private int y;
public Circle (int x, int y) {
this.x = x;
this.y = y;
}
@mox601
mox601 / generalproject experts recommendations
Created June 1, 2011 08:21
recommendations json models
[{"id":21}]
<?php
/*
Plugin Name: Knowledge Room
...
*/
if (!class_exists("KnowledgeRoom")) {
class KnowledgeRoom {
var $pluginPath;
$(".suggest_keys").each(
function() {
$(this).autocomplete({