mvn install:install-file -Dfile=spark-redis-master-assembly-0.1.0.jar -DgroupId=com.redislabs -DartifactId=spark-redis -Dversion=0.5.1 -Dpackaging=jar
Put resolvers += Resolver.mavenLocal in your build.sbt file
name := "Wordy"
| var spooky = new Spooky({ | |
| child: { | |
| transport: 'http' | |
| }, | |
| casper: { | |
| logLevel: 'debug', | |
| verbose: true, | |
| pageSettings: { | |
| loadImages: true, // The WebPage instance used by Casper | |
| loadPlugins: false, // use these settings |
| #!/usr/bin/env python | |
| from pyvirtualdisplay import Display | |
| from selenium import webdriver | |
| display = Display(visible=0, size=(800, 600)) | |
| display.start() | |
| # now Firefox will run in a virtual display. | |
| # you will not see the browser. |
| $ sudo yum install rubygems | |
| $ sudo yum install gcc-c++ | |
| $ sudo yum install ruby-devel | |
| $ sudo gem install less | |
| $ sudo gem install therubyracer | |
| $ lessc yourLessFile.less > yourCssFile.css |
| # Modify file /etc/nginx/sites-enabled/default | |
| server { | |
| listen 80; | |
| server_name data.com; | |
| location / { | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $remote_addr; |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.vertx.java.core.Handler; | |
| import org.vertx.java.core.Vertx; | |
| import org.vertx.java.core.VertxFactory; | |
| import org.vertx.java.core.buffer.Buffer; | |
| import org.vertx.java.core.http.HttpServerRequest; | |
| import org.vertx.java.core.http.RouteMatcher; | |
| import java.io.IOException; |
| import cc.mallet.pipe.Input2CharSequence; | |
| import cc.mallet.pipe.Pipe; | |
| import cc.mallet.pipe.SerialPipes; | |
| import cc.mallet.types.Instance; | |
| import cc.mallet.types.SingleInstanceIterator; | |
| import cc.mallet.types.TokenSequence; | |
| import vn.hus.nlp.tokenizer.VietTokenizer; | |
| import vn.viettel.cyberspace.commons.Utils; | |
| import java.io.*; |
| group 'TeeRunner' | |
| version '1.0-SNAPSHOT' | |
| apply plugin: 'java' | |
| apply plugin: 'application' | |
| sourceSets.main.java.srcDirs = ['src'] | |
| mainClassName = "com.bigsonata.tee.Runner" | |
| sourceCompatibility = 1.5 | |
| repositories { |
| conda create -n python2 python=2.7 anaconda | |
| source activate python2 |
| public class LimitedQueue<E> extends LinkedBlockingQueue<E> | |
| { | |
| public LimitedQueue(int maxSize) | |
| { | |
| super(maxSize); | |
| } | |
| @Override | |
| public boolean offer(E e) |