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
| service = new SitecoreContext(); | |
| var results = new Results(); | |
| Stopwatch watch3 = new Stopwatch(); | |
| watch3.Start(); | |
| for (int i = 0; i < 10000; i++) |
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
| public class Simple : CountDownTimer | |
| { | |
| event TickHandler _onTick; | |
| event TickHandler _onFinished; | |
| public event TickHandler OnTicked | |
| { | |
| add { _onTick += value; } | |
| remove { _onTick -= value; } | |
| } |
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
| <?xml version="1.0" encoding="utf-8" ?> | |
| <!-- \Website\sitecore\shell\Applications\Content Manager\Galleries\Languages --> | |
| <control xmlns:def="Definition" xmlns="http://schemas.sitecore.net/Visual-Studio-Intellisense" xmlns:shell="http://www.sitecore.net/shell"> | |
| <Gallery.Languages> | |
| <Gallery> | |
| <!-- CodeBeside Type="Sitecore.Shell.Applications.ContentManager.Galleries.Languages.GalleryLanguagesForm,Sitecore.Client"/ --> | |
| <CodeBeside Type="LanguageDropDown.GalleryLanguagesForm,LanguageDropDown"/> | |
| <Script> | |
| window.onload = function() { |
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
| var textBoxes = $$('input[type="text"]'); | |
| for(var i = textBoxes.length-1; i > -1 ; i--){ | |
| var txt = textBoxes[i]; | |
| var val = txt.value; | |
| txt.parentElement.appendChild(document.createTextNode(val)); | |
| } |
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
| public class ProductController : GlassController | |
| { | |
| public List<Product> Basket | |
| { | |
| get | |
| { | |
| if (HttpContext.Session["ProductBasket"] == null) | |
| { | |
| HttpContext.Session["ProductBasket"] = new List<Product>(); | |
| } |
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
| <div class="jumbotron"> | |
| <div class="container"> | |
| <h1> | |
| <!-- insert code here --> | |
| </h1> | |
| <!-- insert code here --> | |
| <p> | |
| <a class="btn btn-primary btn-lg" role="button" href="insert code here" >Learn More</a> |
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
| <div class="row"> | |
| <div class="col-md-12"> | |
| <h3>Comments</h3> | |
| @if (Model.Comments == null || !Model.Comments.Any()) | |
| { | |
| <p> | |
| Be the first to make a comment. | |
| </p> | |
| } | |
| 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
| <div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
| <div class="carousel-inner" role="listbox"> | |
| <!-- insert code here --> | |
| </div> | |
| <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev"> | |
| <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | |
| <span class="sr-only">Previous</span> | |
| </a> | |
| <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next"> | |
| <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> |