Skip to content

Instantly share code, notes, and snippets.

View antpowell's full-sized avatar

Powell, Anthony antpowell

View GitHub Profile

Mermaid on Github Examples

All of these diagrams are dynamically rendered during html display by Github, the images generated from text inside the Github-Flavored Markdown. None are static images. Mermaid support was released for Github on 2022-02-14

Pros & Cons:

  • Pro: You don't need to care about the layout.
  • Con: You cannot control the layout.

Notes:

  • Not all the features of Mermaid (in particular symbols B-->C[fa:fa-ban forbidden], hyperlink and tooltips) are supported by Github.
import pyaudio
import numpy as np
sound2 = [
80.30,
81.76,
82.77,
83.33,
83.49,
@antpowell
antpowell / Microsoft.Powewrshell_profile.ps1
Last active August 15, 2023 18:40
Powershell profile settings
# needed to autocomplete git commands
Import-Module posh-git
# Import-Modu`le oh-my-posh
# Set-PoshPrompt -Theme slim
#Install oh-my-posh before this line can run:
#winget install JanDeDobbeleer.OhM5yPosh
oh-my-posh --init --shell pwsh --config C:\Users\Powell\Documents\PowerShell\Modules\oh-my-posh\6.4.3\themes\night-owl.omp.json | Invoke-Expression
function touch {New-Item -ItemType File -Name ($args[0])}
@antpowell
antpowell / settings.json
Last active July 3, 2020 06:07
Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",