Skip to content

Instantly share code, notes, and snippets.

@zachbonham
zachbonham / defnition-of-ready.md
Created July 1, 2023 13:29
Definition of Ready

Definition of Ready

The Definition of Ready are items agreed to by the Product Owner (or representative), and the Team, that must be completed before work can begin.

The Definition of Ready is the shield that protects the team against work beginning before it is clearly understood.

A Work Item is ready to be worked by the Team when the following concerns have been understood:

  • Business Value is Clearly Defined
  • Design Mockups/Wireframes are Included, as needed
@zachbonham
zachbonham / definition-of-done.md
Created July 1, 2023 13:28
Definition of Done

Definition of Done

The Definition of Done are items agreed to by the Product Owner (or representative), and the Team, that must be completed before a Work Item can be considered Done.

The Definition of Done is the shield that prevents work from entering production that is not considered ready.

A Work Item is Done when the following criteria has been met:

  • Pull Requests Merged
  • Code Quality Addressed
@zachbonham
zachbonham / gist:04cafc1e95316b32765463d597b23de0
Created July 1, 2023 12:07
Azure DevOps Static Web Apps Pipeline Task for Deployment Token
- task: AzureCLI@2
displayName: 'Get Deployment Token'
name: swaConfig
inputs:
azureSubscription: $(azureServiceConnection)
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
apiKey=$(az staticwebapp secrets list --name $(websiteName) --query '[properties.apiKey][0]' --output tsv)
@zachbonham
zachbonham / Timestamp
Created March 13, 2015 21:53
NEW_TIMESTAMP
CREATE FUNCTION NEW_TIMESTAMP()
RETURNS int
AS
BEGIN
DECLARE @epoch INT;
SELECT @epoch = DATEDIFF(SECOND, {d '1970-01-01'}, GETUTCDATE())
RETURN @epoch;
END
@zachbonham
zachbonham / 0_reuse_code.js
Created May 23, 2014 14:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@zachbonham
zachbonham / ApplyConfig.ps1
Last active August 29, 2015 14:00
More fun with PowerShell string expansion for .NET app/web.config
<#
Usage:
ApplyConfig "app.config" "DEV"
$configFile - the app/web.config we are 'transforming'.
$environment - the environment context we are transforming for. Maybe snarf this from <appSettings><add key="Environment" value="some value"/>?
#>
param($configFile, $environment="LOCAL")
@zachbonham
zachbonham / SuperAppWeb.ps1
Last active December 22, 2015 23:08
Website resource doesn't do anything, error, etc. No documentation in the PDF overview download. However, un-commenting 'Foo' resource will result in an error.
param($machineName = $(hostname))
Configuration SuperAppWeb
{
Node ($machineName)
{
<#
nothing happens when trying to use this resource?
#>
Website DefaultSite
@zachbonham
zachbonham / SpecRunner.html
Last active December 19, 2015 01:28
Example WInJS class declaration which works from within project, but not from within spec. Spec throws an exception "TypeError: Object doesn't support property or method 'print'" when I try to call print(). I notice this is also true when I try to call a method of ViewModel.LogIn.
<!-- snippet showing how referencing print.js -->
<script type="text/javascript" src="../WorkItemGlass.Metro.UI/js/viewModels.js"></script>
<script type="text/javascript" src="../WorkItemGlass.Metro.UI/js/print.js"></script>
<script type="text/javascript" src="../WorkItemGlass.Metro.UI\pages\login\loginViewModel.js"></script>
@zachbonham
zachbonham / hello.ps1
Last active December 14, 2015 11:58
Testing download and execute powershell from github gist
write-host "machine $($env:computername)"
write-host "hello, $($env:computername) "
@zachbonham
zachbonham / driver.ps1
Created February 19, 2013 00:57
foreman prototype in powershell. Mainly the CTRL+C break for powershell.
$arg1 = "hello1"
$arg2 = "hello2"
$p = $(start-process -filepath .\bin\debug\hello.exe -argumentlist $arg1 -nonewwindow -passthru; start-process -filepath .\bin\debug\hello.exe -argumentlist $arg2 -nonewwindow -passthru);
#$p | wait-process
[console]::TreatControlCAsInput = $true
while($true)