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
git branch -vv | grep ": gone]" | grep -v "*" | awk '{print $1}' | xargs -r git branch -D |
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
javascript:(function()%7Bquery%20%3D%20document.querySelector(%22input.form-control%23js-issues-search%22)%3B%0A%0Aquery.value%20%2B%3D%20%22-label%3Abot%20%22%0A%0Alabels%20%3D%20%5B...new%20Set(query.value.split(%22%20%22))%5D%0A%20%20.filter((label)%20%3D%3E%20%7B%0A%20%20return%20label%20!%3D%3D%20%22%22%0A%7D)%0A%0Aquery.value%20%3D%20labels.join(%22%20%22)%0A%0Adocument.querySelector(%22form.subnav-search%22).submit()%7D)() |
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 | |
/** | |
* 給定時間日期是否合法 | |
* | |
* @param string|null $time | |
* @param \DateTimeZone|string|null $tz | |
* @return bool | |
*/ | |
Carbon::macro('recognized', function ($time = null, $tz = null) { |
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 | |
/** | |
* Check if an item or items NOT exist. | |
* | |
* @param \ArrayAccess|array $array | |
* @param string|array $keys | |
* @return bool | |
*/ | |
Arr::macro('absents', function ($array, $keys) { |
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 | |
/** | |
* Diff the collection with the given items (case insensitive). | |
* | |
* @see Collection::diffUsing() | |
*/ | |
Collection::macro('diffCi', function ($diffBy) { | |
return $this->diffUsing($diffBy, 'strcasecmp'); | |
}); |
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
{"lastUpload":"2022-04-18T04:09:59.118Z","extensionVersion":"v3.4.3"} |
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
javascript:window.location.href=gl.mrWidgetData.pipeline.details.artifacts[0].path |
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 | |
class BonusCalculatorTest extends TestCase | |
{ | |
public function test_isExpired_should_be_true() | |
{ | |
$target = $this->createPartialMock(BonusCalculator::class, [ | |
'getDateTime', | |
]); |
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 | |
class BonusCalculator | |
{ | |
const BONUS_EXPIRED_AT = '2015-12-25'; | |
public function isExpired() | |
{ | |
$datetime = $this->getDateTime(); |
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 | |
class BonusCalculator | |
{ | |
const BONUS_EXPIRED_AT = '2015-12-25'; | |
public function isExpired() | |
{ | |
$datetime = new DateTime; |
NewerOlder