Skip to content

Instantly share code, notes, and snippets.

View DibranMulder's full-sized avatar

Dibran Mulder DibranMulder

View GitHub Profile
@DibranMulder
DibranMulder / CosmosDbHealthCheck.cs
Last active April 18, 2018 07:53
ASP.net Core Health Check
public class CosmosDbHealthCheck : IHealthCheck
{
private readonly IServiceProvider serviceProvider;
public CosmosDbHealthCheck(IServiceProvider serviceProvider)
{
serviceProvider = serviceProvider;
}
public ValueTask<IHealthCheckResult> CheckAsync(CancellationToken cancellationToken = default(CancellationToken))
@DibranMulder
DibranMulder / xamarin-documentation.cs
Created January 7, 2016 09:45
Missing documentation Xamarin
//
// Summary:
// To be added.
//
// Parameters:
// id:
// To be added.
//
// Type parameters:
// T:
@DibranMulder
DibranMulder / deferred.js
Created December 24, 2015 11:38
jQuery deferred
var test = (function () {
function test() {
}
test.prototype.test = function () {
var _this = this;
this.longRunningAsyncOperation().done(function () {
console.error(_this.privateVar);
});
};
@DibranMulder
DibranMulder / splitter.cs
Last active December 24, 2015 11:37
UltraSplitter
public class TSFUltraSplitter
: Panel
{
public readonly Panel Panel1;
public readonly Panel Panel2;
internal readonly TSFUltraSplitterInternal Splitter;
public Orientation Orientation { get { return Splitter.Orientation; } }
public TSFUltraSplitter(Orientation orientation)
{
@DibranMulder
DibranMulder / query.sql
Created December 24, 2015 11:35
DB2 procedure in a loop
SET SCHEMA database;
SET PATH database;
CREATE PROCEDURE stored_procedure_name
(
IN V_some_param varchar(100)
)
LANGUAGE SQL
SET OPTION CLOSQLCSR = *ENDMOD --V6R1 Default
BEGIN ATOMIC
@DibranMulder
DibranMulder / query.sql
Created December 24, 2015 11:34
SQLServer procedure in a loop
USE [database]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
create procedure [dbo].[stored_procedure_name]