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
#lang racket | |
(define (iqueens L a d) ;; gives all of the queen solutions | |
(if (null? L) | |
(list a) | |
(append-map (λ(x) | |
(if(diagonal? x a 1) | |
'() | |
(iqueens (remove x L) (cons x a) 1)) | |
) | |
L))) |
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 void Execute(Item[] items, Sitecore.Tasks.CommandItem command, Sitecore.Tasks.ScheduleItem schedule) | |
{ | |
Sitecore.Diagnostics.Log.Info("My Sitecore scheduled task is being run!", this); | |
} |
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.Net.Mail; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Workflows.Simple; | |
using Sitecore.Links; | |
namespace YOURPROJECTNAMESPACE | |
{ | |
public class EmailAdmin | |
{ |
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
<configuration> | |
<sitecore> | |
<commands> | |
<command name="your:command" type="YourFullyQualifiedType,YourAssembly"/> | |
</commands> | |
</sitecore> | |
</configuration> |
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 Sitecore; | |
using Sitecore.Data; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Form.Core.Configuration; | |
using Sitecore.Form.Core.DatViewer.Data; | |
using Sitecore.Form.Core.Pipelines.Export; | |
using Sitecore.Form.Core.Utility; | |
using Sitecore.Forms.Core.Commands; | |
using Sitecore.Forms.Core.Data; |
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; | |
using System.IO; | |
using System.Text; | |
using System.Web; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Form.Core.Configuration; | |
using Sitecore.Form.Core.Utility; | |
using Sitecore.Forms.Core.Commands.Export; | |
using Sitecore.IO; |
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; | |
using System.IO; | |
using System.Web; | |
using Sitecore.IO; | |
using Sitecore.Form.Core.Utility; | |
namespace MyProject | |
{ | |
public partial class ExportBinary : System.Web.UI.Page | |
{ |
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
namespace MyProjectNamespace | |
{ | |
public interface IInjectedClass | |
{ | |
int TestMethod(); | |
} | |
public class InjectedClass : IInjectedClass | |
{ | |
public int TestMethod() |
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.Web.Mvc; | |
using Sitecore.Mvc.Controllers; | |
namespace MyProjectNamespace.Controllers | |
{ | |
public class TestController : SitecoreController | |
{ | |
private readonly IInjectedClass _injectedClass; | |
public TestController() | |
{ |
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
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<guide> | |
<InjectedClass type="MyProjectNamespace.InjectedClass, MyAssembly" /> | |
</guide> | |
</sitecore> | |
</configuration> |
OlderNewer