name: tufte-viz description: | Ideate and critique data visualizations using Edward Tufte's principles from "The Visual Display of Quantitative Information." Use this skill when: (1) Designing new data visualizations or charts (2) Critiquing or improving existing visualizations (3) Reviewing dashboards or reports for graphical integrity (4) Deciding between visualization approaches (5) Reducing chartjunk or improving data-ink ratio (6) Planning small multiples or high-density displays
🤹♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using namespace System.Diagnostics | |
| using namespace System.Collections | |
| using namespace System.Collections.Generic | |
| using namespace System.IO.Compression | |
| param ( [switch]$NoRun ) | |
| function Assert( [bool]$condition, [string]$message = "Assertion failed" ){ | |
| if( -not $condition ) { | |
| Get-PSCallStack | ForEach-Object { Write-Host $_.FunctionName $_.Location $_.Arguments } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Diagnostics; | |
| using EFCoreAndDomainModels.Application; | |
| using EFCoreAndDomainModels.Domain; | |
| using EFCoreAndDomainModels.Infrastructure; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Design; | |
| using TestBase; | |
| using Xunit.Abstractions; | |
| namespace EFCoreAndDomainModels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This is Git's per-user configuration file. | |
| # [user] | |
| [alias] | |
| root = rev-parse --show-toplevel | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| [merge] | |
| tool = p4merge | |
| [color] | |
| ui = true | |
| [color "status"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://gist.github.com/chrisfcarroll/f3ecb2892f996149ee039d48abb57101 | |
| # Aliases and Paths for PowerShell Profile ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
| # | |
| # ---------------------------------------------------- | |
| # For machines where you have no privileges you should still be able to enable scripts for yourself only with: | |
| # | |
| # `Set-ExecutionPolicy RemoteSigned -Scope CurrentUser` | |
| # ---------------------------------------------------- | |
| # | |
| # Sections: Paths, Editors, Tab Completion, Git abbreviations, Docker abbreviations, other prefs, firstRun |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Snippet from Program.cs which adds the provider and sets up a Settings class to map the settings | |
| using ErikNoren.Configuration; | |
| using TestMvcWebApplication; | |
| var builder = WebApplication.CreateBuilder(args); | |
| builder.Configuration.AddSqlDatabase(config => | |
| { | |
| //We can get the connection string from previously added ConfigurationProviders to use in setting this up | |
| config.ConnectionString = builder.Configuration.GetConnectionString("DemoDatabase"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Fixes extremely slow apropos command on macos | |
| # Using `apropos` on macos rebuilds the whatis database every time. | |
| # Fish shell uses apropos for command completion. | |
| # Simply add the file below to `~/.config/fish/conf.d` to fix the issue | |
| set db ~/.whatis.db | |
| function apropos_update | |
| echo "Updating apropos / whatis database at $db" | |
| man --path | tr ":" " " | xargs /usr/libexec/makewhatis -o $db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Multiple lines uses a -L15-L19 at the end of the URL where as just a single line used - L13 | |
| https://gist.github.com/jcallaghan/611ef3e2f400b5f089354c5d780d8c07#file-highlighted-code-html-L13 | |
| https://gist.github.com/jcallaghan/611ef3e2f400b5f089354c5d780d8c07#file-highlighted-code-html-L15-L19 | |
| <!--Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent eu velit pulvinar, porttitor neque sit amet, | |
| lobortis erat. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec mi | |
| orci, porta et metus eu, blandit ullamcorper neque. Morbi auctor neque tellus, nec lobortis arcu malesuada nec. | |
| Suspendisse eleifend ligula nec massa gravida, id ultrices quam commodo. Nunc malesuada ornare consequat. Morbi | |
| elementum neque sit amet euismod rhoncus. Duis pulvinar libero ornare risus vestibulum rhoncus. Nunc fringilla |
If you like me use a Linux station to do your development and don't want to use the standard Git diff tool this Gist is for you.
- Download installation from Perforce Web Site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <button class="btn btn-primary" @onclick="@ModalShow">Show Dialog!</button> | |
| @if (showModal) | |
| { | |
| <div class="modal fade show" id="myModal" style="display:block" aria-modal="true" role="dialog"> | |
| <div class="modal-dialog"> | |
| <div class="modal-content"> | |
| <!-- Modal Header --> | |
| <div class="modal-header"> |
NewerOlder