Skip to content
//replace this method
commandProto.doHeading = function (chunk, postProcessing) {
// Remove leading/trailing whitespace and reduce internal spaces to single spaces.
chunk.selection = chunk.selection.replace(/\s+/g, " ");
chunk.selection = chunk.selection.replace(/(^\s+|\s+$)/g, "");
// If we clicked the button with no selected text, we just
// make a level 2 hash header around some default text.
if (!chunk.selection) {
chunk.startTag = "#### "; /* rewrite to start at H4 instead */
public class StyleRelativePathTransform : IBundleTransform
{
private const string UrlPattern = @"url\s*\(\s*([""']?)([^:)]+)\1\s*\)";
private static readonly Regex UrlRegex = new Regex(UrlPattern, RegexOptions.IgnoreCase | RegexOptions.Compiled);
public void Process(BundleContext context, BundleResponse response)
{
var mergedCss = new StringBuilder();
// blows up if url contains a query string
//string absoluteToUrl = Path.GetFullPath(Path.Combine(cssFilePath, relativeToCSS));
// replace with
// this is a path that is relative to the CSS file
string relativeToCSS = match.Groups[2].Value;
//prevent querystring from causing error
var pathAndQuery = relativeToCSS.Split(new[] { '?' }, 2, StringSplitOptions.RemoveEmptyEntries);
var pathOnly = pathAndQuery[0];
<?xml version="1.0" encoding="utf-8" ?>
<!--
The web application csproj file has been modified to import this file.
So after a build, the Cassette bundles will be saved into a cache directory.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<UsingTask AssemblyFile="$(OutputPath)\Cassette.MSBuild.dll" TaskName="CreateBundles"/>
<PropertyGroup>
<!--<CassetteOutputPath Condition="'$(CassetteOutputPath)' == ''">Content/cassette-cache</CassetteOutputPath>-->
<?xml version="1.0" encoding="utf-8" ?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<CassetteOutputPath>$(IntermediateOutputPath)cassette-cache</CassetteOutputPath>
<CopyAllFilesToSingleFolderForPackageDependsOn>
BundleAssets;
$(CopyAllFilesToSingleFolderForPackageDependsOn);
</CopyAllFilesToSingleFolderForPackageDependsOn>
<configuration>
<appSettings>
<add key="Raven/AnonymousAccess" value="All" />
<add key="Raven/RunInMemory" value="true" />
<add key="Raven/VirtualDirectory" value="/ravendb.testserver" />
<add key="Raven/TempIndexPromotionMinimumQueryCount" value="1" />
</appSettings>
<system.web>
<customErrors mode="Off">
</customErrors>
#region Using Statements
using System;
using System.Collections.Generic;
using System.Linq;
using Raven.Abstractions.Data;
using Raven.Abstractions.Indexing;
using Raven.Client.Document;
using Raven.Client.Embedded;
using Raven.Client.Indexes;
$dest = "F:\Backup\Runs\backup-"+(Get-Date).ToString("yyyy-MM-dd HHmm")
.\Raven.Backup.exe --url=http://localhost/ --dest=$dest
& 'C:\Program Files\7-Zip\7z.exe' a $dest $dest
Remove-Item -Recurse $dest
[Authorize("Users")]
public class ProfileController : ResourceController
{
private readonly UserReports _userReports;
private readonly Func<UserService> _userServiceFactory;
private readonly ILogger _logger;
private readonly Func<ProfileViewModelValidator> _validatorFactory;
public ProfileController(UserReports userReports, Func<UserService> userServiceFactory, Func<ProfileViewModelValidator> validatorFactory, ILogger logger)
{
public class when_json_dates
{
Establish context = () =>
{
input =@"{""Users"":[{""Id"":""90c68332-a5e2-42ca-bde7-9e0701412110"",""IsActive"":true,""LockedOutUntil"":""\/Date(1289073014137)\/""}],""Count"":1}";
IEnumerable<IDataReader> readers = new List<IDataReader> { new JsonReader(new DataReaderSettings(DefaultEncoderDecoderConfiguration.CombinedResolverStrategy()), "application/.*json") };
decoder = new DefaultDecoder(new RegExBasedDataReaderProvider(readers));
Something went wrong with that request. Please try again.