Examples for how to create your own info panel, warning box and other decent looking notification in GitHub markdown.
All the boxes are single/two cell tables or two row tables.
❗ You have to read about this |
---|
--- | |
company: | |
location: | |
title: | |
email: | |
website: | |
aliases: | |
--- | |
tags:: [[👥 People MOC]] |
// Import aws-cdk packages | |
import * as cdk from '@aws-cdk/core'; | |
import * as sqs from '@aws-cdk/aws-sqs'; | |
import * as lambda from '@aws-cdk/aws-lambda'; | |
import * as lambdaEventSources from '@aws-cdk/aws-lambda-event-sources'; | |
export class HowToTriggerLambdaFromSqsStack extends cdk.Stack { | |
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) { | |
super(scope, id, props); |
export default function(originalPromise, delay = 750) { | |
return Promise.all([ | |
originalPromise, | |
new Promise(resolve => { | |
setTimeout(() => resolve(), delay) | |
}), | |
]).then(result => result[0]) | |
} | |
// Usage |
import { fromFetch } from 'rxjs/fetch'; | |
import { catchError, delay, mergeMap, retryWhen, switchMap } from 'rxjs/operators'; | |
import { from, Observable, of, throwError } from 'rxjs'; | |
const retryWithBackOff = (delayMs: number = 0, maxRetry: number = 0, backOffMs: number = 0) => { | |
let currentRetries = maxRetry; | |
return (source: Observable<any>) => | |
source.pipe( | |
retryWhen((error: Observable<any>) => |
To rename your Git master branch to main, you must do the following steps:
Navigate to your repository in the command line and issue the following commands:
- git branch -m master main
- git push -u origin main
Change your default branch on GitHub by going to your GitHub repository in your browser, and navigate to Settings > Branches
and click on the dropdown and switch from master
to main
and click Update
(this will only show if you have two or more branches). The main
branch is now your default branch.
Update the tracking of the branch from your command line with the following command:
- git branch -u origin/main main
"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', |