This file contains 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
## The collection structure looks like this: | |
##{ | |
## "col1": "some value 1", | |
## "col2": 1234, | |
## "col3": "somevalue 3", | |
## "col4": "some value 4", | |
## "col5": "some value 5", | |
## "col6": [ | |
## { | |
## "some": 1, |
This file contains 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
package com.attlin.web.cache | |
import scala.collection.mutable.HashMap | |
import _root_.scala._ | |
import java.util.Date | |
import akka.actor.Actor | |
import akka.actor.Props | |
import scala.concurrent.duration._ | |
import org.apache.commons.lang.time.DateUtils |
This file contains 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
#!/usr/bin/env ruby | |
require 'net/http' | |
require 'thread' | |
require 'rubygems' | |
require 'json' | |
FLIPTOP_API_KEY = 'your fliptop api key' | |
# this queue represent all the email inputs from your database | |
# please feel free to replace this queue into any data source that |
This file contains 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
package com.fliptop.api; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.methods.HttpGet; | |
import org.apache.http.impl.client.DefaultHttpClient; | |
import org.codehaus.jackson.map.ObjectMapper; | |
import java.util.*; | |
import java.util.concurrent.ConcurrentLinkedQueue; | |
import org.apache.commons.lang.time.DateUtils; |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib | |
from datetime import datetime | |
import json | |
import threading | |
from collections import deque | |
import time | |
FLIPTOP_API_KEY = 'your fliptop api key' |