Skip to content

Instantly share code, notes, and snippets.

Avatar

Keith Davidson davidsk

  • UK
View GitHub Profile
@davidsk
davidsk / kdds-hub.html
Last active Jul 23, 2020
azure-devops-extension-sdk error
View kdds-hub.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- <script src="node_modules/requirejs/require.js"></script> -->
<script src="kdds-hub.js"></script>
</head>
<body>
<h1>Hello, <span id="name"></span></h1>
</body>
</html>
@davidsk
davidsk / Find-GitRepository.ps1
Created Jul 12, 2020 — forked from jdhitsolutions/Find-GitRepository.ps1
Use this PowerShell function to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
View Find-GitRepository.ps1
Function Find-GitRepository {
<#
.SYNOPSIS
Find Git repositories
.DESCRIPTION
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
.PARAMETER Path
The top level path to search.
@davidsk
davidsk / update-database.ps1
Created Oct 7, 2019
Synchronise EF Core Database with Code
View update-database.ps1
param (
[Parameter(Mandatory=$true)][string]$project
[Parameter(Mandatory=$true)][string]$context
[string]$startupProject
)
Set-Location $PSScriptRoot
if (-Not ($startupProject))
{
@davidsk
davidsk / app.html
Created Dec 28, 2018 — forked from jdanyow/app.html
Aurelia Gist
View app.html
<template>
<h1>${message}</h1>
</template>
View javascriptModule
// constructor function
function Foo(){
//public
this.name = "Bob";
// private
var self = this, // <-- assign 'this' within constructor to private variable to allow private methods access to the object members
x = 6;
@davidsk
davidsk / WeekOfDay Count Calculator.js
Last active Sep 20, 2016
WeekOfDay Count Calculator created by davidsk - https://repl.it/DFqJ/25
View WeekOfDay Count Calculator.js
var DayOfWeek = {
Sunday: 0,
Monday: 1,
Tuesday: 2,
Wednesday: 3,
Thursday: 4,
Friday: 5,
Saturday: 6
};
You can’t perform that action at this time.