This file contains 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
function $$(selector, scope = document) { | |
return Array.from(scope.querySelectorAll(selector)); | |
} | |
const stats = []; | |
const threshold = 100; | |
function processPage() { | |
let buttons = $$('a.btn'); | |
let nextButton = buttons.find(function (button) { |
This file contains 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\Rector; | |
use PhpParser\Node; | |
use PhpParser\Node\Expr\StaticCall; | |
use PhpParser\Node\Name\FullyQualified; | |
use PhpParser\Node\Stmt\ClassLike; | |
use PhpParser\Node\Stmt\ClassMethod; | |
use PhpParser\Node\Stmt\Expression; |
This file contains 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
name: "Update Changelog" | |
on: | |
release: | |
types: [released] | |
jobs: | |
update: | |
runs-on: ubuntu-latest |
This file contains 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
#!/bin/bash | |
set -e | |
# NOTE to create labels for your repo | |
# to support types from commit message guide (feat, fix, docs, style, refactor, test, chore) | |
# by hitting GitHub API v3 | |
# | |
# https://developer.github.com/v3/issues/labels/#create-a-label | |
# https://gist.github.com/caspyin/2288960 |
This file contains 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\Markdown; | |
use Illuminate\Container\Container; | |
use League\CommonMark\Block\Element\FencedCode; | |
use League\CommonMark\Block\Element\IndentedCode; | |
use League\CommonMark\CommonMarkConverter; | |
use League\CommonMark\Environment; | |
use League\CommonMark\Extension\ExternalLink\ExternalLinkExtension; |
This file contains 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
name: Deployment | |
on: | |
repository_dispatch: | |
types: ['deploy'] | |
workflow_dispatch: | |
inputs: | |
deploy_host: | |
description: 'Environment' | |
required: true |
This file contains 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
name: "Content Standards" | |
on: | |
pull_request: null | |
push: | |
branches: | |
- "main" | |
jobs: | |
content-standards: |
This file contains 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
{ | |
"require": { | |
"illuminate/collections": "^8.26", | |
"illuminate/support": "^8.26", | |
"symfony/var-dumper": "^5.2" | |
} | |
} |
This file contains 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
ssl_protocols SSLv2 SSLv3 TLSv1 TLSv1.2 TLSv1.3; | |
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'; |
This file contains 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 domains = Array.from($('.nav-item')[1].children[1].children); | |
let domainList = domains.map(function (item) { | |
return item.textContent.replace(/(\r\n|\n|\r)/gm, "").trim(); | |
}); | |
console.table(domainList); |
NewerOlder