- First install the following packages using apt-get :
- autoconf
- libtool
- libxerces-c-dev
- libcppunit-dev
- libncurses5-dev
- doxygen
# This just a few lines to add to a bash '~/.bashrc' configuration. This will add git | |
# command completion as well as display the current working branch. I like the format | |
# of the prompt that this produces so I want to document it here. The git completion | |
# scripts were obtained from https://github.com/git/git/tree/master/contrib/completion | |
# Set up git bash support | |
source ~/.git_bash/git-completion.bash | |
source ~/.git_bash/git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export PS1='\e[0;33m\u@\H\e[m:\e[0;32m\W\e[m\e[0;34m$(__git_ps1 " (%s)")\e[m\$ ' |
var AWS = require('aws-sdk'); | |
var ssm = new AWS.SSM(); | |
exports.handler = function(event, context) { | |
// TODO implement | |
console.log('What is the secret??'); | |
console.log(process.env.secret1); | |
getParameterFromSystemManager(function(){ | |
console.log('done'); |
import akka.NotUsed | |
import akka.actor.ActorSystem | |
import akka.stream.alpakka.kinesis.ShardSettings | |
import akka.stream.alpakka.kinesis.scaladsl.KinesisSource | |
import akka.stream.scaladsl.{Keep, Sink, Source} | |
import akka.stream.{ActorMaterializer, Materializer} | |
import com.amazonaws.regions.{Region, Regions} | |
import com.amazonaws.services.kinesis.model.{Record, ShardIteratorType} | |
import com.amazonaws.services.kinesis.{AmazonKinesisAsyncClientBuilder, AmazonKinesisClient} | |
import org.scalatest.FunSuite |
package ziowork | |
import zio._ | |
import zio.clock.Clock | |
import zio.clock._ | |
import zio.duration._ | |
import zio.random.Random | |
object MyApp extends scala.App { |
import zio._ | |
import zio.clock._ | |
//def foo(number: Int): IO[Int, String] = | |
// for { | |
// _ <- UIO(println(s"foo=$number")) | |
// res <- number match { | |
// case 5 => ZIO.succeed("five") | |
// case 2 => ZIO.succeed("two") | |
// case _ => ZIO.fail(number - 1) |
import zio._ | |
object PrintBytes extends App { | |
import zio.stream._ | |
import zio.console._ | |
import zio.duration._ | |
val fileName = "src/main/resources/world-cities_csv.csv" | |
def fileStream: StreamChunk[IOException, Byte] = |
import eu.timepit.refined.api.Refined | |
import eu.timepit.refined.string.{Url, Uuid} | |
import eu.timepit.refined.auto._ | |
case class MyId(value: String Refined Uuid) | |
val invalidUrl: String Refined Url = "htp://example.com" | |
val validUuid: String Refined Uuid = "61f33e31-5ef6-4aac-b7e2-c8374c19c366" | |
val validProductId = MyId(validUuid) |
import zio._ | |
import zio.console._ | |
object ZioProvideDemo extends App { | |
trait HelloService { | |
val helloService: HelloService.Service | |
} | |
object HelloService { |
package com.dvdkly.fpinscala | |
import scala.annotation.tailrec | |
object Chapter04 { | |
/** | |
* Exercise 4.2 | |
*/ | |
object option { |