Skip to content

Instantly share code, notes, and snippets.

View bforrest's full-sized avatar
💭
Red, red, red, GREEN, refactor

Barry Forrest bforrest

💭
Red, red, red, GREEN, refactor
View GitHub Profile
@bforrest
bforrest / clutter-free-vscode.jsonc
Created January 2, 2024 01:44 — forked from kamilogorek/_screenshot.md
Clutter-free VS Code Setup
// Required Plugin: https://marketplace.visualstudio.com/items?itemName=drcika.apc-extension
// settings.json
{
// Remove left-side icons
"workbench.activityBar.location": "hidden",
// Remove bottom status bar
"workbench.statusBar.visible": false,
// Remove position indicator in the editor's scrollbar
"editor.hideCursorInOverviewRuler": true,
@bforrest
bforrest / image-rotatro.js
Created April 5, 2023 18:28
Image rotator
<img id="daily-image" alt="image of the day" />
<script>
// Get a reference to the img element
const img = document.getElementById('daily-image');
const baseUri = 'https://southshoreinsurance.sharepoint.com/SiteAssets/Forms/AllItems.aspx?id=%2FSiteAssets%2FDailyPhotos/';
var today = new Date().getDay();
var day;
switch (today) {
@bforrest
bforrest / AnotherWay.md
Last active January 24, 2023 21:41
An experimental way of working

An experimental new way of working

At the heart of agile software development is the first enumerated principle from the Manifesto for Agile Software Development:

Our highest priority is to satisfy the customer through early and continuous delivery of valuable software.

We have fallen into a pattern of not having demonstrable software when an increment concludes. There are heavy sighs when the question arises of what is there to show at product review.

I propose remedying this unvirtuous cycle by trying an experiment. This radical idea is to focus on The Most Important Thing. We spend time bandying about number of developers and weeks. We don't spend much attention to what is Important. If something is important we should attack it with virgor and defer new work until completing Important Thing.

This approach ensures that things get completed. Time spent 'in-progress' for the Epic is minimal. We've all see the task/story that sits at 80% done for 9

@bforrest
bforrest / tcob.html
Created October 9, 2022 17:05
tcob proof of concept
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<div class="flex justify-center">
<div class="block rounded-lg shadow-lg bg-white max-w-sm text-center">
<div class="py-3 px-6 border-b border-gray-300 bg-green-100">
<h5 class="text-gray-900 text-xl font-medium mb-2">Southshore Insurance Professionals</h5>
<p class="text-gray-700 text-base mb-4">
Protection you can trust.
</p>
</div>
<div class="flex grid grid-flow-col grid-rows-4">
{
"basics": {
"name": "Barry Forrest",
"label": "Red, Red, Red, Green, Refactor",
"picture": "",
"email": "barry.forrest@gmail.com",
"phone": "940 435 8456",
"website": "",
"summary": "Barry is an agile-ist, web developer, technology generalist, and Scrum Master. Barry loves mentoring others, helping to make work-life better for teams, leaving things in a better state than when he arrived. Barry has co-presented talks at Agile 2018, Agile 2019, and several regional agile gatherings. Barry is also an award-winning homebrewer and an avid amateur photographer.",
"location": {
We can't make this file beautiful and searchable because it's too large.
,Medal,Beer Name,Brewery,City,State,Category,Year
0,Gold,A Creator's Calling,The Lost Abbey,San Marcos,CA,Aged Beer,2019
1,Silver,Belgian Quad,Green Mountain Beer Co.,Lakewood,CO,Aged Beer,2019
2,Bronze,Mob Barley,Meadowlark Brewing,Sidney,MT,Aged Beer,2019
3,Gold,Wit-Tington,Central District Brewing,Austin,TX,American-Belgo-Style Ale,2019
4,Silver,Tank 7 Farmhouse Ale,Boulevard Brewing Co.,Kansas City,MO,American-Belgo-Style Ale,2019
5,Bronze,White Rainbow,Red Rock Brewery - Production,Salt Lake City,UT,American-Belgo-Style Ale,2019
6,Gold,Märzen,Sudwerk Brewing Co.,Davis,CA,American-Style Amber Lager,2019
7,Silver,Oktoberfest,Huss Brewing Co.,Tempe,AZ,American-Style Amber Lager,2019
8,Bronze,Grist Maerzen,Grist Brewing Co.,Highlands Ranch,CO,American-Style Amber Lager,2019
@bforrest
bforrest / ScheduleTimeout.cs
Created May 28, 2020 17:38
Masstransit-schedule-timeout
var configuredDelay = TimeSpan.FromMinutes(30);
Schedule( () => ActivityCompletionTimeout,
instance => instance.ActivityCompletionTimeoutTokenId,
s =>
{
s.Delay = configuredDelay;
s.Received = r => r.CorrelateById(context => context.Message.SagaId);
});
@bforrest
bforrest / ApplicationDbContext
Last active May 1, 2020 14:24
EF Core connections and DbContext Designtime factory
public class ApplicationDbContext : DbContext
{
public ApplicationDbContext(){}
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options): base(options){}
}
FizzBuzz in Scratch:
https://scratch.mit.edu/projects/11638411/editor/
@bforrest
bforrest / submission.md
Last active December 18, 2018 02:12
From The Sidelines To Winning Steins

Ability Level - Fundamentals f your proposal is accepted, this will appear as a description of your topic in the conference program. Please write in paragraph form. Limit to 75 words or less.(600 characters)

  Follow our journey, from passively watching a brew day to winning steins at the Bluebonnet Brew-Off and a gold medal at the Austin region of the NHC a year and a half later. We share the tips and tricks we learned from others and a few of the comical and frustrating mistakes that we made along the way.

Learning Objectives Please list three (3) key objectives that the audience can expect to learn from this presentation.