start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
REMOTE=play@SERVER_IP | |
REMOTE_APP=/home/play/PROJECT_NAME/ | |
sbt stage || exit 1; | |
rsync -va target/ $REMOTE:$REMOTE_APP/target; | |
ssh $REMOTE "cd $REMOTE_APP; ./stop.sh"; | |
ssh $REMOTE "cd $REMOTE_APP; ./start.sh"; |
// We want to use the Scala type system as a logic programming language by resolving at compile | |
// the simple "ancestor" Prolog exercise. | |
import shapeless._ | |
import syntax.singleton._ | |
// Prolog version | |
// parent(stacy, bob). | |
// parent(bob, bill). |
// An ADT+shapeless as a drop-in replacement for a standard Scala Enumeration. | |
// | |
// First the unsafe standard Scala Enumeration ... | |
// | |
object ScalaEnumDemo extends App { | |
// Example from scala.Enumeration scaladoc. Terse ... | |
object WeekDay extends Enumeration { | |
type WeekDay = Value | |
val Mon, Tue, Wed, Thu, Fri, Sat, Sun = Value | |
} |
val byteStringSerializer = new org.apache.kafka.common.serialization.Serializer[ByteString]() { | |
override def configure(configs: util.Map[String, _], isKey: Boolean): Unit = {} | |
override def serialize(topic: String, data: ByteString): Array[Byte] = data.toArray | |
override def close(): Unit = {} | |
} |
""" | |
Author: Awni Hannun | |
This is an example CTC decoder written in Python. The code is | |
intended to be a simple example and is not designed to be | |
especially efficient. | |
The algorithm is a prefix beam search for a model trained | |
with the CTC loss function. |
ARTIK Cloud est le futur Cloud IoT de Samsung. C'est une plateforme distribuée, dans le “cloud”, qui collecte héberge et sécurise les données venant de n’importe quel objet connecté. ARTIK Cloud est aussi ouvert aux développeurs d'applications souhaitant, avec l'accord de l'utilisateur, fournir des services basés sur ses données IoT. L'API est publique et disponible pour tous: https://developer.artik.cloud/.
Ce projet est développé au sein d'un département innovation chez Samsung: SSIC (Samsung Strategy and Innovation Center) basé à San José, San Franciso et Paris.
import pandas as pd | |
import numpy as np | |
import seaborn as sns | |
from keras.layers import Dense | |
from keras.models import Model, Sequential | |
from keras import initializers | |
## ---------- Create our linear dataset --------------- | |
## Set the mean, standard deviation, and size of the dataset, respectively |
I was talking to a coworker recently about general techniques that almost always form the core of any effort to write very fast, down-to-the-metal hot path code on the JVM, and they pointed out that there really isn't a particularly good place to go for this information. It occurred to me that, really, I had more or less picked up all of it by word of mouth and experience, and there just aren't any good reference sources on the topic. So… here's my word of mouth.
This is by no means a comprehensive gist. It's also important to understand that the techniques that I outline in here are not 100% absolute either. Performance on the JVM is an incredibly complicated subject, and while there are rules that almost always hold true, the "almost" remains very salient. Also, for many or even most applications, there will be other techniques that I'm not mentioning which will have a greater impact. JMH, Java Flight Recorder, and a good profiler are your very best friend! Mea