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
mvn clean deploy -P release |
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
function commit | |
git status | |
git add --all | |
read commit_msg | |
git commit -m $commit_msg | |
git push | |
end |
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
@FinalFieldsConstructor static class BitfinexActor extends AbstractActor { | |
extension val ActorHelper helper = new ActorHelper(this) | |
val bitfinex = new AtomicReference<BitfinexWebsocketClient>() | |
val String symbol | |
override preStart() throws Exception { | |
connect() | |
} |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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.sirolf2009.telegram.btcbot.command | |
import com.sirolf2009.telegram.btcbot.Database | |
import java.util.Map | |
import java.util.List | |
import org.eclipse.xtend.lib.annotations.Data | |
import java.text.DecimalFormat | |
class CommandArbritrage extends Command { |
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
import java.util.concurrent.Executors | |
import java.util.concurrent.ExecutorService | |
import java.util.stream.Stream | |
class Parallel { | |
static val executor = Executors.newFixedThreadPool(100) | |
def static void main(String[] args) { | |
val now = System.currentTimeMillis() |
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
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; |
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
List<TimeSlice> slices | |
def nd4jDataSet() { | |
val input = Nd4j.zeros(1, 3, slices.length-2) | |
val label = Nd4j.zeros(1, 3, slices.length-2) | |
val red = slices.map[it.predictionRed] | |
val black = slices.map[it.predictionBlack] | |
val diff = slices.map[it.predictionDiff] |
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
import Foundation | |
class Client : NSObject, NSStreamDelegate { | |
var host: String = "" | |
var listeners: [Listener] = [Listener]() | |
var ID: String = "" | |
var connected: Bool = false |
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
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.ArrayList; | |
import java.util.List; | |
import com.google.android.gms.nearby.messages.Message; |