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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>@model.title</title> | |
<link href="/css/site.css" rel="stylesheet"> | |
</head> | |
<body> | |
@html.block("body") | |
</body> |
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
Runner type: Command line | |
Step name: your step name | |
Execute step: your condition | |
Working directory: MyDemoProject | |
- (Project with tests directory - I have the jstests.js and jstests.html files there. Optional, set if differs from the checkout directory where the command will be executed) | |
Run: Execute with parameters | |
Command executable: C:\phantomjs-1.9.7\phantomjs.exe | |
- (update to your correct 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
public class BlogController : Controller | |
{ | |
private IArticleRepository ArticleData { get; set; } | |
private IUserRepository UserRepository { get; set; } | |
public BlogController(IArticleRepository articleRepository, IUserRepository userRepository) | |
{ | |
if(articleRepository == null) throw new ArgumentNullException("articleRepository"); | |
if (userRepository == null) throw new ArgumentNullException("userRepository"); |
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
<div ng-controller="Ctrl"> | |
<span ng-repeat="category in categories"> | |
<label class="checkbox" for="{{category.id}}"> | |
<input type="checkbox" ng-model="selection.ids[category.id]" name="group" id="{{category.id}}" /> | |
{{category.name}} | |
</label> | |
</span> | |
<pre ng-bind="selection.ids | json"></pre> | |
</div> |
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.ComponentModel.Composition; | |
using System.ComponentModel.Composition.Hosting; | |
using System.IO; | |
namespace CpoDesign.Service.Core | |
{ | |
/// <summary> | |
/// MEF Compositon class | |
/// </summary> |
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 (var context = new PrincipalContext( ContextType.Domain )) | |
{ | |
using (var user = UserPrincipal.FindByIdentity( context, IdentityType.SamAccountName, userName )) | |
{ | |
user.SetPassword( "newpassword" ); | |
// or | |
user.ChangePassword( "oldPassword", "newpassword" ); | |
} | |
} |
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
@{ | |
ViewBag.Title = "CreateQuote"; | |
Layout = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<h2>CreateQuote</h2> | |
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
<input type="text" class="inputNumber" value="123456789" /> | |
<input type="text" class="inputNumber" value="123456789" /> | |
<button>click</button> |
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 (var pdfDoc = new Pdf().GetPdfDoc()) | |
{ | |
pdfDoc.Color.String = "255 0 0"; | |
pdfDoc.Rect.String = pdfDoc.MediaBox.String = "A4"; | |
pdfDoc.HtmlOptions.UseScript = false; // set to true if your layout is JavaScript dependent | |
pdfDoc.Page = pdfDoc.AddPage(); | |
pdfDoc.Color.String = "255 0 0"; | |
int theID; | |
theID = pdfDoc.AddImageUrl(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
<div id="parent"> Text to update | |
<div>Child1</div> | |
<div>Child2</div> | |
<div>Child3</div> | |
<div>Child4</div> | |
</div> |