Skip to content

Instantly share code, notes, and snippets.

@sbedford
sbedford / clientside.js
Created September 26, 2017 04:20
Javascript to interact with Dynamics 365 SDK
var Sdk = window.Sdk || {}
Sdk.request = function (action, uri, data, formattedValue, maxPageSize) {
if (!RegExp(action, "g").test("POST PATCH PUT GET DELETE")) { // Expected action verbs.
throw new Error("Sdk.request: action parameter must be one of the following: " +
"POST, PATCH, PUT, GET, or DELETE.");
}
if (!typeof uri === "string") {
throw new Error("Sdk.request: uri parameter must be a string.");
}
{
"CommandName":"ResetDevice",
"Parameters":
{
"time":"2016-09-28T14:29:33.308Z"
}
}
@sbedford
sbedford / LiquidTemplate.html
Last active August 29, 2015 14:21
ADXPortals-Part1
<div class="container">
<div class= "page-heading" >
<div class= "page-header">
<h1>{{ page.title }}</h1>
</div>
</div>
<div class="row">
<div class="col-sm-4 col-lg-3">
{% assign nav = weblinks["Primary Navigation"] %}
{% if nav %}
@sbedford
sbedford / IssueFieldsWithcomponent.cs
Created February 12, 2015 23:52
Git Jira Release Note Snippets
public class IssueFieldsWithcomponent : IssueFields
{
public IEnumerable<Component> components { get; set; }
public string customfield_10400 { get; set; }
public Issue<IssueFieldsWithcomponent> RelatedEpic = null;
public IssueFieldsWithcomponent()
: base()
@sbedford
sbedford / DeployReports.ps1
Last active June 16, 2020 11:59
SSRS Deployment Automation Snippets
##################################################################
### The following parameters are provided by Octopus Deploy. ###
### Uncomment these with default values for testing. ###
#################################################################
#$SSRSReportServerUrl = "http://ssrs/reportserver/reportservice2005.asmx"
#$SSRSDynamicDataSourceCredentialsUsername = ""
#$SSRSDynamicDataSourceCredentialsPassword = ""
#$SSRSReportFolder = "Project Folder"
#$SSRSSharedDataSourcePath = "/Data Sources/dsShared"
using LibGit2Sharp;
var repo = @"C:\development\git\CommunityPortal";
using (var repo = new Repository(repo))
{
}