Skip to content

Instantly share code, notes, and snippets.

Sean Bedford sbedford

Block or report user

Report or block sbedford

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sbedford
sbedford / clientside.js
Created Sep 26, 2017
Javascript to interact with Dynamics 365 SDK
View clientside.js
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.");
}
View CFS_Command.json
{
"CommandName":"ResetDevice",
"Parameters":
{
"time":"2016-09-28T14:29:33.308Z"
}
}
View LiquidTemplate.html
<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 Feb 12, 2015
Git Jira Release Note Snippets
View IssueFieldsWithcomponent.cs
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 Mar 18, 2017
SSRS Deployment Automation Snippets
View DeployReports.ps1
##################################################################
### 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"
View app.csx
using LibGit2Sharp;
var repo = @"C:\development\git\CommunityPortal";
using (var repo = new Repository(repo))
{
}
You can’t perform that action at this time.