A tiny ~150-byte polyfill for Promise.prototype.finally
.
Useful for browsers that support Promise but not the .finally()
method.
npm install finally-polyfill
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>ASCII Webcam</title> | |
<style type="text/css"> | |
html, | |
body { |
build: | |
- 'composer install --no-dev --classmap-authoritative' | |
- 'php artisan event:cache' | |
- 'sh ../../../utils/vapor_build_purge.sh' |
When implementing a JSON API, you may be required to modify Laravel's standard JSON API Resource meta section, in particular pagination.
Laravel's default JSON pagination looks like this:
"links":{
"first": "http://example.com/pagination?page=1",
"last": "http://example.com/pagination?page=1",
"prev": null,
On March 22, npm fired several members of the open source and community team for discussing workplace conditions and other labor organizing activities. As a result, core employee contributors to the npm cli were removed from the project, and others have left in solidarity or put their work on hold.
Multiple claims were filed with the NLRB on this matter. The NLRB has investigated and found sufficient evidence of validity to proceed. The National Labor Relations Act of 1935 protects US employees' right to engage in discussions of workplace concerns without threat of retaliation -- and awareness of the importance of how we treat each other is something I valued so much in collaborating with the cli team. How can we work together if we aren't free to discuss what we need?
It's disappointing for all of us to find the work we were doing interrup
# added to ohmyzsh custom aliases; for laravel / artisan | |
getinsights() { | |
composer require nunomaduro/phpinsights --dev | |
php artisan vendor:publish --provider="NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider" | |
php artisan insights | |
} |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
[{"111110":"111120","Soybean Farming":"Oilseed (except Soybean) Farming"}, | |
{"111110":"111130","Soybean Farming":"Dry Pea and Bean Farming"}, | |
{"111110":"111140","Soybean Farming":"Wheat Farming"}, | |
{"111110":"111150","Soybean Farming":"Corn Farming"}, | |
{"111110":"111160","Soybean Farming":"Rice Farming"}, | |
{"111110":"111191","Soybean Farming":"Oilseed and Grain Combination Farming"}, | |
{"111110":"111199","Soybean Farming":"All Other Grain Farming"}, | |
{"111110":"111211","Soybean Farming":"Potato Farming"}, | |
{"111110":"111219","Soybean Farming":"Other Vegetable (except Potato) and Melon Farming"}, | |
{"111110":"111310","Soybean Farming":"Orange Groves"}, |