- Assemble Scala sbt
- brew install elasticsearch@2.4
- Install Kibana
- Download hadoop 2.6.4
- Download Spark 1.6.1
- brew install scala@2.10
- Download Kafka 2.11-0.10.0.0
This file contains hidden or 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
| psql -t -P format=unaligned -c 'show hba_file'; |
This file contains hidden or 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
| brew install go | |
| brew install docker | |
| brew install docker-machine | |
| docker-machine create --driver virtualbox default | |
| eval $(docker-machine env default) | |
| docker build . -t dev/assessment-service | |
| docker-machine ls | |
| docker run -it -p 9000:9000 dev/assessment-service | |
| docker-machine ip default |
This file contains hidden or 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
| Yes, the app must be published to the Play Store in order for the feature to work. | |
| One way to help debug your end is to trigger the intent via adb, | |
| for example: adb shell am start -a com.google.android.gms.actions.SEARCH_ACTION -e query leela,palace,chennai com.tripadvisor.tripadvisor |
This file contains hidden or 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
| **Install Pygments** | |
| `pip install pygments` | |
| ** Create the following function in bashrc ** | |
| ``` | |
| function jcurl() { | |
| curl "$@" | json | pygmentize -l json | |
| } | |
| ``` |
This file contains hidden or 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 com.github.kittinunf.fuel.core.ResponseDeserializable | |
| import com.google.gson.Gson | |
| import com.google.gson.GsonBuilder | |
| import com.google.gson.JsonDeserializer | |
| import com.google.gson.reflect.TypeToken | |
| class Block() { | |
| class Deserializer : ResponseDeserializable<Block> { | |
| override fun deserialize(reader: Reader) = Gson().fromJson(reader, Block::class.java) |
This file contains hidden or 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
| Class Hasher { | |
| fun hash(): String { | |
| val bytes = this.toString().toByteArray() | |
| val md = MessageDigest.getInstance("SHA-256") | |
| val digest = md.digest(bytes) | |
| return digest.fold("", { str, it -> str + "%02x".format(it) }) | |
| } | |
| } |
This file contains hidden or 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 com.fasterxml.jackson.databind.ObjectMapper | |
| import com.github.kittinunf.fuel.httpGet | |
| import com.github.kittinunf.fuel.httpPost | |
| import tech.ajira.kitCoin.models.Block | |
| object BlockService { | |
| fun broadcastNewBlock(nodeAddresses: Set<String>, newBlock: Block) { | |
| val jsonString = ObjectMapper().writeValueAsString(newBlock) | |
| nodeAddresses.forEach { nodeAddress -> |
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.