curl http://balanced-hangman.herokuapp.com
Hopefully you'll see something like
{
"index": "/",
"me": "/me",
import java.io.IOException; | |
import java.util.Properties; | |
import kafka.server.KafkaConfig; | |
import kafka.server.KafkaServerStartable; | |
public class KafkaLocal { | |
public KafkaServerStartable kafka; | |
public ZooKeeperLocal zookeeper; |
package test; | |
import org.junit.Test; | |
import org.junit.runner.RunWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.test.context.ContextConfiguration; | |
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; | |
@RunWith(SpringJUnit4ClassRunner.class) | |
@ContextConfiguration(locations = {"classpath:applicationContext-test.xml" }) |
# Building static nginx for teh lulz | |
# | |
# basic dependencies | |
sudo apt-get install libxslt1-dev libxml2-dev zlib1g-dev libpcre3-dev libbz2-dev libssl-dev | |
# download nginx and openssl | |
wget http://nginx.org/download/nginx-1.5.6.tar.gz | |
tar xf nginx-1.5.6.tar.gz; cd nginx-1.5.6 |
> {-# LANGUAGE Rank2Types #-} | |
> | |
> import Prelude hiding (id) | |
> import Data.Functor.Constant (Constant(Constant), getConstant) | |
> import Control.Arrow (Arrow, arr, first, Kleisli(Kleisli), runKleisli, (&&&)) | |
> import Control.Category ((<<<)) | |
> import Control.Lens (sequenceAOf) | |
> import qualified Control.Lens as L | |
> import qualified Control.Lens.Internal.Setter as LS | |
> import Data.Profunctor (Profunctor, rmap) |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Map; | |
import ma.glasnost.orika.MapperFactory; | |
import ma.glasnost.orika.impl.ConfigurableMapper; | |
public class SO1 { | |
/** |
/* | |
AnnotationClassMapBuilder extends the default class map builder and override byDefault method to lookup for more metadata | |
*/ | |
public class AnnotationClassMapBuilder<A, B> extends ClassMapBuilder<A, B> { | |
protected AnnotationClassMapBuilder(Type<A> aType, Type<B> bType, PropertyResolverStrategy propertyResolver, | |
DefaultFieldMapper[] defaults) { | |
super(aType, bType, propertyResolver, defaults); | |
} |
// Proof of concept CurveCP handshake over 0MQ. | |
// | |
// Demonstrates a confidential, authenticated connection between | |
// two 0MQ peers (two DEALER sockets in this example). See the | |
// curvecp.org website for details of the security design. | |
// | |
// This is a flat walk-through in code with minimal abstraction. | |
// The next version of this code will be more packaged. | |
// | |
// IMPORTANT NOTE: this code has not been reviewed by security experts |
//============================================================================// | |
// // | |
// Parameterize BRAM with wishbone interface // | |
// // | |
// Module name: bram_wb // | |
// Desc: parameterized dual-port bram with a wishbone interface on one // | |
// port. // | |
// Date: June 2012 // | |
// Developer: Wesley New // | |
// Licence: GNU General Public License ver 3 // |