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
$Credential = Get-Credential | |
$uri = 'https://stash.globalx.com.au/rest/api/1.0/projects?limit=100' | |
$projects = Invoke-RestMethod -uri $uri -Authentication Basic -Credential $Credential | |
ForEach ($project in $projects.values) | |
{ | |
$key = $project.key | |
$uri = "https://stash.globalx.com.au/rest/api/1.0/projects/$key/repos?limit=500" | |
$repos = Invoke-RestMethod -uri $uri -Authentication Basic -Credential $Credential |
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
DECLARE @Name nvarchar(1000); | |
DECLARE @Sql nvarchar(1000); | |
DECLARE @Result int; | |
DECLARE ObjectCursor CURSOR FAST_FORWARD FOR | |
SELECT SCHEMA_NAME(o.schema_id) + '.[' + OBJECT_NAME(o.object_id) + ']' | |
FROM sys.objects o | |
WHERE type_desc IN ( | |
'SQL_STORED_PROCEDURE', | |
'SQL_TRIGGER', |
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
requirejs.config({ | |
paths: { | |
"dropboxchooser": ["https://www.dropbox.com/static/api/2/dropins"] | |
}, | |
//Remember: only use shim config for non-AMD scripts, | |
//scripts that do not already call define(). The shim | |
//config will not work correctly if used on AMD scripts, | |
//in particular, the exports and init config will not | |
//be triggered, and the deps config will be confusing | |
//for those cases. |
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
private bool AnyActivitiesAnsweredYes() | |
{ | |
bool answered = false; | |
if (Q48.SelectedItem.Text == "Yes") answered = true; | |
if (Q49.SelectedItem.Text == "Yes") answered = true; | |
if (Q50.SelectedItem.Text == "Yes") answered = true; | |
if (Q51.SelectedItem.Text == "Yes") answered = true; | |
if (Q52.SelectedItem.Text == "Yes") answered = true; | |
if (Q53.SelectedItem.Text == "Yes") answered = true; |
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
[TestMethod] | |
public void DeserializeTest() | |
{ | |
const string json = "{\"a\":\"test\"}"; //already stringifyied | |
var result = ServiceStack.Text.JsonSerializer.DeserializeFromString<dynamic>(json); | |
Assert.AreEqual("test", result.a); | |
} | |
[TestMethod] | |
public void SerializeTest() |
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
public interface IJobOrderClientContactLegacyService | |
{ | |
[OperationContract] | |
[FaultContract(typeof(MessageFault))] | |
[FaultContract(typeof(ValidationFault))] | |
[FaultContract(typeof(DataFault))] | |
[FaultContract(typeof(ServiceFault<ErrorCodeEnum>))] | |
int SaveJobOrderClientContact(Guid jobOrderId, Guid clientContactId, Guid createdByUserId, int jobOrderClientContactTypeId); | |
} |