I hereby claim:
- I am tekul on github.
- I am tekul (https://keybase.io/tekul) on keybase.
- I have a public key whose fingerprint is DA49 35C1 2444 4710 F7D7 A289 CE5E 7562 B9D2 9BD2
To claim this, I am signing this object:
| #!/bin/bash | |
| # | |
| # Prerequisites: | |
| # rustup component add llvm-tools-preview | |
| # cargo install rustfilt | |
| # jq | |
| set -euo pipefail | |
| TOOLS_DIR="$(rustc --print sysroot)/lib/rustlib/x86_64-unknown-linux-gnu/bin" |
| // We start with an array of pet objects | |
| let pets = [ | |
| { | |
| name: "Hector", | |
| type: "dog", | |
| likes: "chicken" | |
| }, | |
| { | |
| name: "Mackie", | |
| type: "cat", |
| // We want to apply a function to each element of an array and get | |
| // back a new array of the same length, with a function applied to | |
| // each element. | |
| let arr = [1, 2, 3, 4, 5]; | |
| console.log(arr); | |
| // Then function takes one parameter (same type as the elements in | |
| // the array) and has to return something (or we end up with an |
| function idBestUsers() { | |
| let monthlyOrders = [...arguments]; | |
| let totalMonths = monthlyOrders.length; | |
| let clientOrders = new Object(); | |
| monthlyOrders[0].forEach(clientId => { | |
| if(!clientOrders[clientId]) { | |
| clientOrders[clientId] = new Array(monthlyOrders.length); | |
| clientOrders[clientId][0] = 0; |
| {-# LANGUAGE OverloadedStrings, FlexibleContexts, MultiParamTypeClasses, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving #-} | |
| import Control.Monad.Base (MonadBase, liftBase) | |
| import Control.Monad.Trans.Control (MonadBaseControl(..), StM) | |
| import Control.Monad.Catch (MonadThrow, MonadCatch) | |
| import Control.Exception.Base (fromException, SomeException(..)) | |
| import Control.Exception.Lifted (throwIO, catch) | |
| import Control.Monad.IO.Class | |
| import Control.Monad.Fix | |
| import Control.Monad.Trans.State.Strict (StateT, get, put) |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE ScopedTypeVariables #-} | |
| module Main where | |
| import Criterion.Main | |
| import Control.Monad.State | |
| import Crypto.Error | |
| import Crypto.Cipher.AES | |
| import Crypto.Cipher.Types |
I hereby claim:
To claim this, I am signing this object:
| import sbt._ | |
| import Keys._ | |
| object GatlingPlugin { | |
| val gatling = TaskKey[Unit]("gatling") | |
| val gatlingVersion = SettingKey[String]("gatling-version") | |
| val gatlingResultsDirectory = SettingKey[String]("gatling-results-directory") | |
| val gatlingDataDirectory = SettingKey[String]("gatling-data-directory") | |
| val gatlingConfigFile = SettingKey[String]("gatling-config-file") |