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
<?php declare(strict_types=1); | |
namespace App; | |
use App\Exception\GameOverException; | |
use App\Exception\InvalidFrameException; | |
use App\Exception\InvalidRollException; | |
/** | |
The initial class written to pass the unit tests |
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
<?php | |
/** | |
Write a wrapper class that should encapsulate an array. Validate that the array only has integer elements. If not, raise an exception. | |
Implement a method that returns with numbers from the array that OCCURS odd number of times. | |
*/ | |
// original | |
/* |
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
http://timestamp.globalsign.com/scripts/timstamp.dll | |
https://timestamp.geotrust.com/tsa | |
http://timestamp.comodoca.com/rfc3161 | |
http://timestamp.wosign.com | |
http://tsa.startssl.com/rfc3161 | |
http://time.certum.pl | |
http://timestamp.digicert.com | |
https://freetsa.org | |
http://dse200.ncipher.com/TSS/HttpTspServer | |
http://tsa.safecreative.org |
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
<?php | |
/** | |
* If you try to pass a query generated with findBySql() to an ActiveDataProvider, | |
* you will find that the convenient filtering and sorting methods won't work on your query, | |
* because the SQL statement is already specified. | |
* | |
* See: https://www.yiiframework.com/doc/api/2.0/yii-db-activerecord#findBySql()-detail | |
* | |
* However, if you use an ArrayDataProvider instead of an ActiveDataProvider, |
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
<template> | |
<div> | |
<div id="#anchor"></div> | |
<nuxt-link :to="{ path: localePath('pathname'), hash: '#anchor' }">Go to anchor</nuxt-link> | |
</div> | |
</template> |
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
// components/component.vue | |
<template lang="pug"> | |
div {{ new Date() | moment("dddd, MMMM Do YYYY, h:mm:ss a") }} | |
b-form-select(:value="locale" @change="changeLocale($event)") | |
option(v-for="lang in locales" :value="lang" :key="lang") | |
i(:class="'flag-icon-' + lang").flag-icon | |
</template> | |
<script> |