- Assemble Scala sbt
- brew install [email protected]
- Install Kibana
- Download hadoop 2.6.4
- Download Spark 1.6.1
- brew install [email protected]
- 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
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
**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
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
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
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
wget -q -O — https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add - | |
sudo sh -c ‘echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list’ | |
sudo apt-get update | |
sudo apt-get install jenkins |
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
# Adding user to sudo list | |
usermod -aG sudo username | |
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart |
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 brew | |
brew install zsh --> upgrade to latest version of zsh | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
install agnoster-paradox theme | |
install powerline fonts if missing | |
https://raw.githubusercontent.com/skwp/dotfiles/master/iTerm2/Solarized%20Dark.itermcolors |
Two forces that can cheat lexical scope:
- Eval - By allowing the user to create/modify variables by passing in a string to eval
- With - By creating a new variable in the whole new lexical scope (inside the containing function scope)
most of the optimizations the javascript engine does will be pointless if there is eval()
or with
.
So it simply doesn't perform the optimizations at all #long live lexical scope