This file contains hidden or 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
angular.module("umbraco").run(["eventsService", function(eventsService) { | |
function findModelScope(scope) { | |
if (!scope) { | |
return null; | |
} | |
if (scope.model) { | |
return scope; | |
} | |
return findModelScope(scope.$parent); | |
} |
This file contains hidden or 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
{ | |
"name": "angularmochaparcel", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"directories": { | |
"test": "test" | |
}, | |
"scripts": { | |
"test": "mocha --watch" |
This file contains hidden or 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
-- set how many versions to keep on line 21 (rn > n) | |
-- actually delete stuff by modifying line 34 to 'commit tran' | |
begin tran | |
go | |
IF OBJECT_ID('tempdb..#tmp') IS NOT NULL DROP Table #tmp | |
create table #tmp (versionid uniqueidentifier) | |
insert #tmp select versionid from ( | |
select |
This file contains hidden or 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
validate takes code | |
let hasDouble be no | |
let char be 1 | |
let max be 6 | |
while char is weaker than max | |
let thisvalue be code at char | |
let thatvalue be code at char without 1 | |
if thisvalue is weaker than thatvalue (can't use array refs here) | |
give back no | |
else |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using Umbraco.Core; | |
using Umbraco.Core.Models; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
namespace Umbraco.UnitTesting.Adapter.Support | |
{ | |
public class FakeModelFactoryResolver : PublishedContentModelFactoryResolver |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.TeamFoundation.SourceControl.WebApi; | |
using Microsoft.VisualStudio.Services.Common; | |
using Microsoft.VisualStudio.Services.WebApi; | |
using Umbraco.Core.IO; | |
namespace Umbraco.Forms.Git |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using NUnit.Framework; | |
namespace SimpleCommands.Tests | |
{ | |
[TestFixture] | |
public class When_Processing_A_Command_With_A_Composite | |
{ |
This file contains hidden or 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; | |
using System.ComponentModel; | |
using System.Globalization; | |
using System.Web.Mvc; | |
using Microsoft.Ajax.Utilities; | |
namespace StringTypes.Web.Controllers | |
{ | |
public class HomeController : Controller | |
{ |
This file contains hidden or 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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using Microsoft.Owin.Hosting; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; |
This file contains hidden or 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
@Component({ | |
selector: "list-parameters", | |
templateUrl: "./list-parameters.html" | |
}) | |
export class ListParametersComponent { | |
@Input() | |
public query: any = {}; | |
@Output() | |
queryChange = new EventEmitter(); |