Ch001 Part003
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 microsoft/dotnet:1.0-sdk-msbuild | |
| WORKDIR /app | |
| # copy fsproj and restore as distinct layers | |
| COPY dotnetapp.fsproj . | |
| RUN dotnet restore | |
| # copy and build everything else | |
| COPY . . | |
| RUN dotnet publish -c Release -o out |
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
| type CellStatus = | |
| | Dead | |
| | Alive | |
| type Cell = { | |
| status : CellStatus | |
| } | |
| type RuleContext = { | |
| regenerateMin : int |
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
| type CellStatus = | |
| | Dead | |
| | Alive | |
| type Cell = { | |
| status : CellStatus | |
| } | |
| let changeCellStatus cell surrounding = | |
| let status' = |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEngine; | |
| using UniRx; | |
| public class Combo : MonoBehaviour | |
| { |
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 MainActivity : AppCompatActivity() { | |
| // All necessary variables defined here | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| var rxBleClient = RxBleClient.create(this) |