javascript:(function pullRequestTemplate() {
var e = document.activeElement;
if (e) {
e.value += [
'#### What does this PR do?',
'#### Where should the reviewer start?',
'#### How should this be manually tested?',
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 | |
namespace App\Libs; | |
class JsonSchema { | |
public static function flatten_spec($file) { | |
$path = dirname($file); | |
$json = static::load_json($file); | |
$contents = json_encode(static::replace_refs($path, $json)); | |
file_put_contents($path . '/openapi.json', $contents); |
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
♜♞♝♛♚♝♞♜ | |
♟♟♟♟♟♟♟♟ | |
□■□■□■□■ | |
■□■□■□■□ | |
□■□■□■□■ | |
■□■□■□■□ | |
♙♙♙♙♙♙♙♙ | |
♖♘♗♕♔♗♘♖ |
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
randomItem : List a -> Maybe a | |
randomItem xs = | |
case xs of | |
[] -> | |
Nothing | |
_ -> | |
let | |
randomInt = | |
Random.int 0 ((List.length xs) - 1) |
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 JsonDataProviderIterator implements Iterator | |
{ | |
protected $position = 0; | |
protected $array; | |
public function __construct($test, $namespace) | |
{ | |
$path = preg_replace('/.php$/', '.data', $test) . '/' . $namespace; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
console.log('hello'); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
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
{ | |
".modal" : ".modal", | |
".modal.modal-open" : ".modal--open", | |
".modal > .inner" : ".modal__inner", | |
".modal > .inner > .head" : ".modal__head", | |
".modal > .inner > .head > .title" : ".modal__title", | |
".modal > .inner > .head > .modal-toggle": ".modal__head > .modal-toggle", | |
".modal > .inner > .body" : ".modal__body", | |
".modal > .inner > .foot" : ".modal__foot" | |
} |
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
module.exports = function (classSet) { | |
return Object.keys(classSet).filter(function (className) { | |
return !!classSet[className]; | |
}).join(' '); | |
}; |
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
var debounce = (function () { | |
var timeouts = {}; | |
return function (id, callback) { | |
if (timeouts[id]) { | |
clearTimeout(timeouts[id]); | |
} | |
timeouts[id] = setTimeout(callback, 300); | |
} | |
})(); |
NewerOlder