- Package Manager: Homebrew https://brew.sh/
- Terminal
- Hyper https://hyper.is/
brew cask install hyper - iTerm2 https://iterm2.com/
brew cask install iterm2 - Customize your Terminal https://tjay.dev/howto-my-terminal-shell-setup-hyper-js-zsh-starship/
- Hyper https://hyper.is/
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 protobuf | |
| go get -u google.golang.org/grpc | |
| go get -u github.com/golang/protobuf/protoc-gen-go | |
| protoc -I=./api --go_out=plugins=grpc:./api ./api/hello.proto |
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
| FROM ruby:2.6.3-alpine | |
| RUN apk add --update --no-cache bash build-base nodejs sqlite-dev tzdata postgresql-dev yarn | |
| RUN gem install bundler:2 | |
| WORKDIR /usr/src/app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --check-files |
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
| func onMainDo<T>(_ firstMainBlock: @escaping () -> Void, onBackgroundDo backgroundBlock: @escaping () -> T, thenOnMainDo mainBlock: @escaping (T) -> Void) { | |
| DispatchQueue.main.async { | |
| firstMainBlock() | |
| DispatchQueue.global(qos: .background).async { | |
| let result = backgroundBlock() | |
| DispatchQueue.main.async { | |
| mainBlock(result) | |
| } | |
| } | |
| } |
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
| func startApp() { | |
| onMainDo({ | |
| self.activityIndicator.startAnimating() | |
| }, onBackgroundDo: { | |
| let storage = PersistentSecureStorage.shared() | |
| guard let savedToken == storage.token { | |
| return .goToAuth | |
| } | |
| let tokenIsValid = authService.isValidToken(savedToken) | |
| if !tokenIsValid { |
Your assignment is to create a simple Reddit client that shows the top 50 entries from Reddit - www.reddit.com/top Guidelines:
- Assume latest Android platform
- Support Landscape What to show The app should be able to show data from each entry such as:
- Title (at its full length, so take this into account when sizing your cells)
- Author
- entry date, following a format like “x hours ago”
- A thumbnail for those who have a picture.
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
| # Inspirations: | |
| # http://mutelight.org/practical-tmux | |
| # http://zanshin.net/2013/09/05/my-tmux-configuration/ | |
| # http://files.floriancrouzat.net/dotfiles/.tmux.conf | |
| # http://stackoverflow.com/questions/9628435/tmux-status-bar-configuration | |
| # https://github.com/Lokaltog/powerline | |
| # https://github.com/remiprev/teamocil | |
| # http://superuser.com/questions/74492/whats-the-best-prefix-escape-sequence-for-screen-or-tmux | |
| # http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/ | |
| # |
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
| curl -XGET http://aplicaciones007.jne.gob.pe/srop_publico/Consulta/Afiliado/GetNombresCiudadano?DNI=40392025 |
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
| function flatter( arr ){ | |
| return arr.reduce(function (result, el) { | |
| return result.concat(Array.isArray(el) ? flatter(el) : el); | |
| }, []); | |
| } |
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
| image: node:10 | |
| pipelines: | |
| branches: | |
| master: | |
| - step: | |
| name: "Build, test and deploy to firebase production" | |
| deployment: production | |
| caches: | |
| - node |