https://github.com/spatie/spatie.be
Content centric site of Spatie company
Demo: http://spatie.be
| /** | |
| * @module modules/courseAdInjector | |
| * @description Inject advertisement block to the document using specified rules | |
| * @example courseAdInjector.addCourseAd('.js-courseAd-area'); | |
| */ | |
| define(['jquery', 'modules/countdown'], ($, Countdown) => { | |
| /** | |
| * @returns {Object} | |
| * @private | |
| */ |
| function returnRefinedURL(url) { | |
| return url.replace(new RegExp("=\\w+"),"").replace("?&","?").replace("&&","&"); | |
| } | |
| testsAndRequests = []; | |
| document.querySelector('.report-waterfall').contentWindow.document.querySelectorAll('.vsc-initialized table .netTable').forEach((table, index) => { | |
| table.querySelectorAll('.netFullHrefLabel.netHrefLabel.netLabel ').forEach((row, rowIndex) => { | |
| if (rowIndex === 0) { testsAndRequests.push([]); } | |
| testsAndRequests[index].push(row.textContent); |
https://github.com/spatie/spatie.be
Content centric site of Spatie company
Demo: http://spatie.be
| #!/usr/bin/env bash | |
| # Run as root or with sudo | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "This script must be run as root or with sudo." | |
| exit 1 | |
| fi | |
| # Make script exit if a simple command fails and | |
| # Make script print commands being executed | |
| set -e -x |
| # A basic deptrac config for Laravel application to isolate HTTP context from the rest of the app | |
| # see https://qossmic.github.io/deptrac/ | |
| # see https://alies.dev/articles/ | |
| deptrac: | |
| paths: | |
| - ./app | |
| layers: | |
| - name: Model |
| <?php | |
| /** @var \OpenAPI\Client\Configuration $config */ | |
| /** @var string $from_lob_address_id */ | |
| /** @var string $front */ | |
| /** @var string $back */ | |
| $editableAddress = new AddressEditable([ | |
| 'address_line1' => 'al. Jana Pawła II 21/37', | |
| 'address_city' => 'Warszawa', |
These assets created for the First hour of a new Laravel project article.
Add these files to the .github/workflows directory of your project, commit and push them.
main.yml example uses PostgreSQL DB as an exammple. You can read more about other services: