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
| let tests = | |
| testList "遊戲主體規則" [ | |
| testList "卡牌生成規則" [ | |
| test "生成後共有一零四張牌" { | |
| let expected = 104 | |
| let actual = cardRepo |> List.length | |
| Expect.equal actual expected "生成後的牌數應為一零四張" | |
| } | |
| test "生成後的每一張牌為連號" { | |
| let expected = seq { for i in 1 .. 104 do yield i } |> Seq.toList |
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
| query { | |
| viewer { | |
| login | |
| } | |
| } |
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
| { | |
| "id": "c5661e72-d646-4112-ac0e-eb04387d8bd8", | |
| "content": "泠色初澄一帶煙,幽聲遙瀉十絲弦。長來枕上牽情思,不使愁人半夜眠。" | |
| } |
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 Suit = Spades | Hearts | Clubs | Diamonds | |
| type Rank = Two | Three | Four | Five | Six | Seven | Eight | Nine | Ten | Jack | Queen | King | Ace | |
| type Card = Rank * Suit |
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
| const contentful = require('contentful') | |
| const chalk = require('chalk') | |
| // const Table = require('cli-table2') | |
| const argv = require('yargs').argv | |
| const Rx = require('rxjs/Rx') | |
| const Observable = require('rxjs/Observable').Observable | |
| const spaceId = argv.spaceId | |
| const accessToken = argv.accessToken |
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
| const contentful = require('contentful') | |
| const chalk = require('chalk') | |
| const Table = require('cli-table2') | |
| const argv = require('yargs').argv | |
| const Rx = require('rxjs/Rx') | |
| const Observable = require('rxjs/Observable').Observable | |
| const spaceId = argv.spaceId | |
| const accessToken = argv.accessToken |
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
| # unlink first | |
| if [ -L "$(pwd)/Assets/Plugins/UniRx.dll" ] ; then | |
| unlink "$(pwd)/Assets/Plugins/UniRx.dll" | |
| fi | |
| if [ -L "$(pwd)/Assets/Plugins/Zenject" ] ; then | |
| unlink "$(pwd)/Assets/Plugins/Zenject" | |
| fi | |
| if [ -L "$(pwd)/Assets/Plugins/Zenject.meta" ] ; then |
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
| namespace RollABall | |
| open UnityEngine | |
| type CameraController() = | |
| inherit UnityEngine.MonoBehaviour() | |
| [<DefaultValue>] val mutable player : GameObject | |
| let mutable offset : Vector3 = Unchecked.defaultof<Vector3> |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UniRx; | |
| public class LoggerFromUniRx : MonoBehaviour | |
| { | |
| private class LogCallback | |
| { |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Akka; | |
| using Akka.Actor; | |
| namespace GiantCroissant.UseAkka.Game | |
| { | |
| public class Greet |