Skip to content

Instantly share code, notes, and snippets.

View andrescolodrero's full-sized avatar

AndresColodrero andrescolodrero

View GitHub Profile
@andrescolodrero
andrescolodrero / ssis-deploy-sqlagentjob.Test.ps1
Last active April 4, 2018 12:28
Pester example for ssis-deploy-sqlagentjob.Tests.ps1
mport-Module Pester
$here = Split-Path -Parent $MyInvocation.MyCommand.Path
$dirName = Split-Path -Leaf $here
$toTest = (Join-Path $here "..\..\step-development\ssis-deploy-sqlagentjob.ps1")
# Initialize OctopusParameters
$OctopusParameters = @{}
$OctopusParameters.Add("SSIS_ServerName", "localhost")
$OctopusParameters.Add("SSIS_FolderName", "Hekla")
@andrescolodrero
andrescolodrero / number_service-status.coffee
Last active November 7, 2016 21:31
Number Status Services
class Dashing.NumberStatusService extends Dashing.Widget
@accessor 'current', Dashing.AnimatedValue
@accessor 'difference', ->
if @get('last')
last = parseInt(@get('last'))
current = parseInt(@get('current'))
if last != 0
diff = Math.abs(Math.round((current - last) / last * 100))
"#{diff}%"