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 AutoMapper; | |
| using FluentAssertions; | |
| using NSubstitute; | |
| using NUnit.Framework; | |
| namespace AutoMapperUnitTest; | |
| public class BarEntity | |
| { | |
| public string Name { get; set; } |
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
| --- | |
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1beta1 | |
| metadata: | |
| name: traefik-ingress-controller | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - pods |
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 -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash \ | |
| && . ~/.nvm/nvm.sh \ | |
| && nvm install node \ | |
| && php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
| && php -r "if (hash_file('sha384', 'composer-setup.php') === 'e0012edf3e80b6978849f5eff0d4b4e4c79ff1609dd1e613307e16318854d24ae64f26d17af3ef0bf7cfb710ca74755a') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \ | |
| && php composer-setup.php \ | |
| && php -r "unlink('composer-setup.php');" |
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
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY=base64:erv0M3mji8JKRZxT744WK85IgkRaL2Yp0dvJcgtKJe8= | |
| APP_DEBUG=true | |
| APP_URL=http://localhost/moe | |
| LOG_CHANNEL=stack | |
| DB_CONNECTION=mysql | |
| DB_HOST=mysql |
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, PartialEq)] | |
| struct Shoe { | |
| size: u32, | |
| style: String | |
| } | |
| fn shoes_in_my_size(shoes: Vec<Shoe>, shoe_size: u32) -> Vec<Shoe> { | |
| // shoes.iter() // 錯誤 iter() 無法獲取 vec 元素所有權, 只能取得 ref, 不符合回傳值的型態 | |
| // .filter(|s| s.size == shoe_size) | |
| // .collect() |