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 org.scalatest.flatspec.AnyFlatSpec | |
import org.scalatest.matchers.must.Matchers | |
import java.util.concurrent.atomic.{AtomicBoolean, AtomicLong} | |
import scala.concurrent.{ExecutionContext, ExecutionContextExecutor, Future} | |
import scala.concurrent.duration._ | |
object Timer { |
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
//> using scala "2.13" | |
//> using platform "jvm" | |
//> using lib "com.rabbitmq:amqp-client:5.16.0" | |
//> using lib "com.typesafe.play::play-json:2.7.4" | |
import play.api.libs.json.{Json, OFormat} | |
object SystemProperties extends App { | |
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
version: '2' | |
services: | |
# | |
# ZooKeeper Service | |
# ############################ | |
zookeeper: | |
image: wurstmeister/zookeeper:3.4.6 | |
container_name: zookeeper | |
restart: always |
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
#! /bin/bash | |
# | |
# BASIC | |
# ################### | |
export EDITOR=/usr/bin/vim | |
export SHELL=/bin/bash | |
export PAGER=less | |
# erase duplicated entries, ignore entries that are duplicates or begin with spaces |
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
$ listJdks | |
Matching Java Virtual Machines (3): | |
1.8.0_151, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home | |
1.8.0_77, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home | |
1.7.0_80, x86_64: "Java SE 7" /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/Contents/Home | |
/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home | |
$ showJdk | |
/Library/Java/JavaVirtualMachines/jdk1.8.0_151.jdk/Contents/Home |
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 me.lightspeed7.dsug.streams | |
import org.scalatest.FunSuite | |
import org.scalatest.Matchers._ | |
class NodeSolutionTest extends FunSuite { | |
def function(in: Seq[String]): Map[String, Int] = { | |
in.flatMap(_.split(" ")) | |
.groupBy(identity) |
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 io.timeli.test | |
import scala.util.matching.Regex | |
trait Semigroup[A] { | |
def append(x: A)(y: A): A | |
} | |
object Semigroup { | |
implicit def listSemigroup[A]: Semigroup[List[A]] = |
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
[color] | |
ui = auto | |
[color "status"] | |
header = cyan bold | |
branch = green | |
nobranch = red reverse white | |
added = green | |
changed = yellow | |
untracked = red | |
deleted = red bold |
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
# Public account | |
Host github.com | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/github_buschman7 |
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
echo "Begin Profile Setup ...." | |
echo "===========================================" | |
#Colors | |
RED="\e[31m" | |
YELLOW="\e[0;33m" | |
GREEN="\e[0;32m" | |
OCHRE="\e[38;5;95m" | |
BLUE="\e[0;34m" | |
WHITE="\e[0;37m" |
NewerOlder