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
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<!-- for help, see https://technet.microsoft.com/en-us/library/cc737576.aspx --> | |
<httpRedirect enabled="true" destination="http://isc.dev.crumpled-dog.net$V$Q" exactDestination="true" httpResponseStatus="Temporary" /> | |
</system.webServer> | |
</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
npm install -g grunt-cli npm install bower install grunt | |
REM Add application to bower.json | |
bower install angular-ui-date --save |
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
<label ng-repeat="fruitName in fruits"> | |
<input | |
type="checkbox" | |
name="selectedFruits[]" | |
value="{{fruitName}}" | |
ng-checked="selection.indexOf(fruitName) > -1" | |
ng-click="toggleSelection(fruitName)" | |
> {{fruitName}} | |
</label> |
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
$e = $_.Exception | |
$line = $_.InvocationInfo.ScriptLineNumber | |
$msg = $e.Message | |
Write-Host -ForegroundColor Red "caught exception: $e at $line" | |
Write-Host -ForegroundColor Red "An exception occurred." | |
Write-Host -ForegroundColor Red '$_ = ' $_ | |
Write-Host -ForegroundColor Red '$_.GetType().FullName = ' $_.GetType().FullName | |
Write-Host -ForegroundColor Red '$_.Exception = ' $_.Exception | |
Write-Host -ForegroundColor Red '$_.Exception.GetType().FullName = ' $_.Exception.GetType().FullName |
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
string simpleString = "this string will be cached"; | |
HttpRuntimeCache cache = new HttpRuntimeCache(); | |
cache.Add("simpleString", simpleString); | |
string fromCache = cache.Get("simpleString") as string; | |
cache.Remove("simpleString"); |
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
From my previous experience please consider these : | |
Check you have put the break point in a right place and you are running the appropriate page or controller | |
Right-Click on the break point => Location => Check "Allow Source Code to be different from the original version" | |
If you are calling through Ajax call , Make sure you have not java-script error on the page ( for this IE catch js errors by default) | |
Clean solution | |
Rebuild |
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
mkdir empty_dir | |
robocopy empty_dir the_dir_to_delete /s /mir | |
rmdir empty_dir | |
rmdir the_dir_to_delete |
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
var clicky; | |
$(document).mousedown(function (e) { | |
// The latest element clicked | |
clicky = $(e.target); | |
}); | |
$(selector).mouseup(function (e) { | |
clicky = null; | |
}); |
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
@{ | |
RequestContext requestContext = HttpContext.Current.Request.RequestContext; | |
UrlHelper urlHelper = new System.Web.Mvc.UrlHelper(requestContext); | |
string apiControllerUrl = urlHelper.GetUmbracoApiService<CamMonController>(x => x.CreateCampaignForNodeId(123)); | |
} | |
<h1>Example Link</h1> | |
<a href="@(apiControllerUrl)">LINK</a> |
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 Category | |
{ | |
public int ID { get; set; } | |
public string Name { get; set; } | |
} |