"Spice is guaranteed" ~ Rafael Dohms
For easy consumption, this list is available on Twitter: https://twitter.com/i/lists/1270692367398572033/
export default function(originalPromise, delay = 750) { | |
return Promise.all([ | |
originalPromise, | |
new Promise(resolve => { | |
setTimeout(() => resolve(), delay) | |
}), | |
]).then(result => result[0]) | |
} | |
// Usage |
"Spice is guaranteed" ~ Rafael Dohms
For easy consumption, this list is available on Twitter: https://twitter.com/i/lists/1270692367398572033/
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
class PewPewPew extends Command | |
{ | |
protected $signature = 'pewpewpew'; | |
protected $description = 'Command description'; |
name: Laravel 7, MariaDb, & Redis CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
continuous-integration: |
<?php | |
$providers = [ | |
'Illuminate\Auth\AuthServiceProvider', | |
'Illuminate\Broadcasting\BroadcastServiceProvider', | |
'Illuminate\Bus\BusServiceProvider', | |
'Illuminate\Cache\CacheServiceProvider', | |
'Illuminate\Foundation\Providers\ConsoleSupportServiceProvider', | |
'Illuminate\Cookie\CookieServiceProvider', | |
'Illuminate\Database\DatabaseServiceProvider', | |
'Illuminate\Encryption\EncryptionServiceProvider', |
name: Unit tests | |
on: [push] | |
jobs: | |
phpunit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Copy .env |
# get version id | |
query($name: String!, $owner: String!) { | |
repository(name: $name, owner: $owner) { | |
id | |
name | |
registryPackages(first: 10) { | |
nodes { | |
versions(first: 10) { | |
nodes{ | |
id |
This Gist has now been converted into a package and migrated to https://github.com/marcnewton/laravel-alsl
FROM openjdk:8-jdk-alpine | |
LABEL Miguel Doctor <migueldoctor@gmail.com> | |
RUN apk add --no-cache curl tar bash procps | |
# Downloading and installing Maven | |
ARG MAVEN_VERSION=3.6.1 | |
ARG USER_HOME_DIR="/root" | |
ARG SHA=b4880fb7a3d81edd190a029440cdf17f308621af68475a4fe976296e71ff4a4b546dd6d8a58aaafba334d309cc11e638c52808a4b0e818fc0fd544226d952544 |
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |