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
| #[derive(Debug)] | |
| struct Instruction { | |
| value: i16 | |
| } | |
| impl Instruction { | |
| fn incr(&mut self) { | |
| self.value += 1 | |
| } | |
| } |
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
| 0 | |
| 0 | |
| 0 | |
| 1 | |
| 2 | |
| -1 | |
| 0 | |
| -5 | |
| -6 | |
| -5 |
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
| // cron type | |
| struct Cron { | |
| seconds: Seconds, | |
| minutes: Minutes, | |
| hours: Hours, | |
| day_of_month: DOM, | |
| months: Months, | |
| day_of_week: DOW, | |
| } | |
| // routes each type(ex seconds) to the specific function to decode into human readable |
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
| // cron type | |
| struct Cron { | |
| seconds: Seconds, | |
| minutes: Minutes, | |
| hours: Hours, | |
| day_of_month: DOM, | |
| months: Months, | |
| day_of_week: DOW, | |
| } | |
| // routes each type(ex seconds) to the specific function to decode into human readable |
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
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| name: $ENV-$REPO_NAME | |
| --- | |
| apiVersion: v1 | |
| data: | |
| .dockerconfigjson: $DOCKER_SECRET | |
| kind: Secret | |
| metadata: |
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
| name: CI | |
| on: | |
| push: | |
| branches: | |
| - staging | |
| - master | |
| jobs: | |
| build: |
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
| #!/bin/bash | |
| # Erlang | |
| ERLANG_VERSION=${ERLANG_VERSION:-20.2} | |
| ERLANG_CACHED_DOWNLOAD="${HOME}/cache/OTP-${ERLANG_VERSION}.tar.gz" | |
| ERLANG_DIR=${ERLANG_DIR:="$HOME/erlang"} | |
| # Elixir | |
| ELIXIR_VERSION=${ELIXIR_VERSION:-1.6.3} | |
| ELIXIR_CACHED_DOWNLOAD="${HOME}/cache/elixir-v${ELIXIR_VERSION}.zip" |
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
| #!/bin/sh | |
| # I use this to install Elixir on our codeship instances for testing. YMMV. | |
| # curl -O https://gist.githubusercontent.com/jamesotron/44f8962cddef781ab830/raw/e75599e95587cbca26e707505fd40dd0f26eb0f5/install_ex.sh | |
| # . ~/install_ex.sh | |
| # You can override your Elixir and Erlang versions from your shell when you call ./install_ex.sh. | |
| export ERLANG_VERSION=${ERLANG_VERSION:-18.0.3} | |
| export ELIXIR_VERSION=${ELIXIR_VERSION:-1.0.5} |