To grow as a software architect, developer, team member, and leader, in a challenging and caring environment
myDBContext.Database.Log = message => System.Diagnostics.Debug.WriteLine(message); |
public class Result<T> | |
{ | |
private readonly T _value; | |
public T Value { get { return _value; } } | |
private List<string> _errors = new List<string>(); | |
public IReadOnlyCollection<string> Errors => _errors; | |
private List<Exception> _exceptions = new List<Exception>(); | |
public IReadOnlyCollection<Exception> Exceptions => _exceptions; |
CREATE TABLE [dbo].[tokens] | |
( | |
[id] INT IDENTITY(1,1) NOT NULL, | |
[token] NCHAR(6) NOT NULL CONSTRAINT DF_subscribertokens_token DEFAULT CONVERT(nvarchar(6),LEFT(REPLACE(NEWID(),'-',''),6)), | |
[created] DATETIME NOT NULL CONSTRAINT DF_subscribertokens_created DEFAULT getutcdate(), | |
[notes] VARCHAR(MAX) NULL, | |
[deactivated] BIT NOT NULL CONSTRAINT DF_subscribertokens_deactivated DEFAULT 0, | |
CONSTRAINT [PK_tokens] PRIMARY KEY CLUSTERED ([id] ASC), | |
CONSTRAINT UC_tokens_token UNIQUE (token) |
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Test Method - Base</Title> | |
<Author>Adam Costenbader</Author> | |
<Description>Use to define the base structure of a test method.</Description> | |
<Shortcut>btest</Shortcut> | |
</Header> | |
<Snippet> |
SELECT | |
COLUMN_NAME AS 'ColumnName' | |
,TABLE_SCHEMA AS 'TableSchema' | |
,TABLE_NAME AS 'TableName' | |
FROM | |
INFORMATION_SCHEMA.COLUMNS | |
WHERE | |
COLUMN_NAME LIKE '%COLUMN_NAME_HERE%' -- <-- REPLACE COLUMN FILTER | |
ORDER BY | |
TableSchema |
using System; | |
using System.Diagnostics; | |
namespace Tools.Debugging | |
{ | |
public class ExecutionTimeLogger : IDisposable | |
{ | |
private readonly Stopwatch watch; | |
private readonly string _titleForWhatIsBeingTracked; | |
private readonly string _callingMethodName; |
I am in multiple Slack teams and have messages coming in frequently throughout the day. I am also on phone calls with clients all day who don't want to feel like I'm distracted during the call. I could put myself DND (do not disturb) on each slack instance but that's time consuming and I cannot always predict when I'll have a call.
I found a brilliant Slack app, called "OTTT", that allows you to issue slash commands to set your DND for a specified amount of time. To make this more awesome it also allows you, for a modest service fee, to link your Slack team instances so that one slash command sets all of your workspaces to DND. [u]This is what I need![/u]
Now with use of the Ariela app call state sensor and the Slack notify component, with a few small tweaks, I can auto DND when I'm on a call....ah, sweet silence.