This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"base_path": "/government/organisations/prime-ministers-office-10-downing-street", | |
"content_id": "705dbea4-8bd7-422e-ba9c-254557f77f81", | |
"document_type": "organisation", | |
"first_published_at": "2013-03-12T14:15:18.000+00:00", | |
"locale": "en", | |
"public_updated_at": "2019-08-12T09:29:33.000+00:00", | |
"publishing_app": "whitehall", | |
"rendering_app": "collections", | |
"schema_name": "organisation", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"base_path": "/government/organisations/prime-ministers-office-10-downing-street", | |
"content_id": "705dbea4-8bd7-422e-ba9c-254557f77f81", | |
"document_type": "organisation", | |
"first_published_at": "2013-03-12T14:15:18.000+00:00", | |
"locale": "en", | |
"public_updated_at": "2019-08-12T09:29:33.000+00:00", | |
"publishing_app": "whitehall", | |
"rendering_app": "collections", | |
"schema_name": "organisation", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yes, it's a pile of hacks | |
require 'set' | |
require 'csv' | |
require 'pry' | |
require 'rugged' | |
require 'time' | |
filename = 'deployments.csv' | |
release_regex = /^release_[\d]+$/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
headers: { "X-RequestDigest": formDigestValue }, | |
url: url, | |
method: "POST", | |
contentType: "application/json", | |
data: submitData, | |
success: function(data){ | |
if(data.indexOf("<meta name=\"SharePointError\"") > 0){ | |
// oh noes! | |
// error handling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var data = { | |
name: "dave", | |
age: 35, | |
height: 188}; | |
var submitData = JSON.stringify(data); | |
$.ajax({ | |
headers: { "X-RequestDigest": formDigestValue }, | |
url: url, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var formDigestValue = $("#__REQUESTDIGEST").val(); | |
$.ajax({ | |
headers: { "X-RequestDigest": formDigestValue }, | |
url: url, | |
method: "POST", | |
contentType: "application/json", | |
data: JSON.stringify(data), | |
success: success, | |
error: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO; | |
using System.Web; | |
using System.Web.Hosting; | |
using System.Web.Caching; | |
namespace Hughesdon.Cache { | |
public static class Fingerprint | |
{ | |
public static string Tag(string path) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<!-- Include this step after the current build "depends on" list --> | |
<BuildDependsOn> | |
$(BuildDependsOn); | |
CreateWSP; | |
</BuildDependsOn> | |
<BinStash>$(SolutionDir)Bin\</BinStash> | |
<PostBuildEvent></PostBuildEvent> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<BuildDependsOn> | |
$(BuildDependsOn); | |
StashOutput; | |
</BuildDependsOn> | |
<BinStash>$(SolutionDir)Bin\</BinStash> | |
<PostBuildEvent></PostBuildEvent> | |
</PropertyGroup> |
NewerOlder