Skip to content

Instantly share code, notes, and snippets.

@Bekbolatov
Bekbolatov / proj4-pom.xml
Created December 1, 2015 06:25
Maven build definition for proj4.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.sparkydots.uw</groupId>
<artifactId>proj4</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<finalName>mt-submit</finalName>
<plugins>
/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/bin/java -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14 CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home/jre/lib/htmlconve
@Bekbolatov
Bekbolatov / Merger.scala
Last active January 8, 2016 18:25
Merger trait - common functionality of merging networks
trait Merger {
def merge(xs: Seq[Int], ys: Seq[Int]): Seq[Int]
}
trait MergeSorting {
self: Merger =>
def sort(xs: Seq[Int]): Seq[Int] = {
if (xs.size < 2) {
@Bekbolatov
Bekbolatov / example.tex
Last active July 27, 2016 06:24
Example LaTeX
\documentclass{book}
\begin{document}
\chapter{Github}
You can create a new Gist, add, modify, and delete files and code
entirely in the browser. You don't need to install or download anything\footnote{This is an excerpt
from http://robertgreiner.com/2012/04/using-github-as-a-syntax-highlighter/}.
\end{document}
val X = Source.actorRef[Int](0, OverflowStrategy.dropNew)
val Y = X.to(Sink.foreach(println))
val Z = Y.run()
Z ! "pretty cool"