Skip to content

Instantly share code, notes, and snippets.

View tiesmaster's full-sized avatar

Ties Brobbel tiesmaster

View GitHub Profile
@tiesmaster
tiesmaster / WorkflowyHideTagsIndexInNotesOnRootPage.css
Created April 25, 2021 19:39
Workflowy: Hide tags index in notes on root page
div.mainTreeRoot div.notes {
display: none !important;
}
@tiesmaster
tiesmaster / WorkflowyBetterHighlightColor.css
Created April 20, 2021 18:46
Workflowy: Better highlight color
.contentMatch {
background: limegreen !important;
}
@tiesmaster
tiesmaster / WorkflowyHighPrio.css
Created April 20, 2021 18:30
Workflowy: High Prio
.contentTag[title="Filter #prio"]:before
{
content: var(--content);
display: inline !important;
visibility: visible !important;
color: var(--circle-opacity-1) !important;
font-family: var(--font-family) !important;
}
.contentTag[title="Filter #prio"]:hover:before
@tiesmaster
tiesmaster / MiscellaneousStylableTags.css
Last active April 25, 2021 19:25
Miscellaneous Stylable Tags
/* ================== OUTLINES ================== */
/* ===== UPPERCASE ===== */
div.project.uc-proj > div.name > div.content > span.innerContentContainer {
text-transform: uppercase;
}
div.project.uc-proj > div.name > div.content > span.innerContentContainer > span.contentTag {
text-transform: none ;
// ==UserScript==
// @name WorkflowyStylableTags
// @description Gives each tag it's own CSS style, so you can style them with CSS.
// @author LukeMT
// @include http*://*workflowy.com/*
// @version 1.1
// ==/UserScript==
String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
@tiesmaster
tiesmaster / workflowy-colored-inbox.css
Created April 14, 2021 09:31
Workflowy: Colored INBOX
div.project:nth-of-type(5n) {
background: bisque;
}
div.project:nth-of-type(10n) {
background: lavender;
}
@tiesmaster
tiesmaster / workflowy-colored-tags.css
Last active April 19, 2021 21:16
Workflowy: Colored tags
/*
- CHANGE UP THE TITLE (TAG NAME) & BACKGROUND COLOR
- FOR DIFFERENT COLORS:
(1) You can use the 147 CSS colors: http://www.colors.commutercreative.com/grid/
(2) ... or you can use hexidecimal color codes: http://html-color-codes.info/
*/
@tiesmaster
tiesmaster / aaa.snippet
Created March 5, 2020 18:42
"Arrange, Act, and Assert" snippet for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Arrange, Act, and Assert</Title>
<Shortcut>aaa</Shortcut>
<Description>Code snippet for the unit test pattern arrange, act, and assert</Description>
<Author>tiesmaster</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
@tiesmaster
tiesmaster / dotnet-ef.sh
Created February 20, 2020 10:13
dotnet ef migrations shit
dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Migrations/ConfigurationDb
dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Migrations/PersistedGrantDb
dotnet ef database update -c IdentityServer4.EntityFramework.DbContexts.ConfigurationDbContext
dotnet ef database update -c IdentityServer4.EntityFramework.DbContexts.PersistedGrantDbContext
@tiesmaster
tiesmaster / 02-switch-over-to-simple-injector.md
Created October 28, 2019 07:51
Switch over to SimpleInjector

Switch over to SimpleInjector

Introduction

Unity is heavily deprecated, hard to use, and doesn’t support decorators (easily). So I think it adds value to switch over.

Switching over DI is very tricky, and dangerous (much more then the xUnit switch over).

Methodology