Skip to content

Instantly share code, notes, and snippets.

@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase<XThread>
@{
Layout = "Shared/_Thread.cshtml";
}
<div class="post post-view-list">
@Html.Partial("Post.cshtml", Tuple.Create(Model.OpPost, "flat"))
</div>
using Nemerle.Collections;
using Nemerle.Extensions;
using Nemerle.Compiler;
using System.Console;
using Nemerle.Text;
using Nemerle.Utility;
using System;
using System.IO;
using System;
using System.CodeDom.Compiler;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.DirectoryServices;
using System.DirectoryServices.ActiveDirectory;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using System;
using System.Collections.Generic;
namespace PermutationsMany
{
public class Program
{
public static void Main()
{
var collections = new[] { new[] { 1, 2, }, new[] { 4, 5, 100, 234 }, new[] { 6, 7 } };
div.sort_wr {
position: relative;
}
a.sort {
background: url('/Content/img/icons_24b.png') -47px 0 no-repeat;
cursor: pointer;
height: 8px;
position: absolute;
right: 5px;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using System.Xml.XPath;
using Akka.Actor;
using Akka.Event;
using CsvHelper;
internal static object FindRealSource(Model model, ValueSourceKey key, IList<IDimension> dimensionsPriority, params DataMapping[] mappings)
{
var orderedIds = key.Items.Select(x => new { index = dimensionsPriority.IndexOf(x.Dimension), Item = x })
.OrderBy(y => y.index).ToArray();
var toPermutate = orderedIds.Where(x => x.index >= 0).Select(x => x.Item);
var excludedIds = orderedIds.Where(x => x.index < 0).Select(x => x.Item);
var parentChains = toPermutate.Select(x => GetChainToParent(x).ToArray()).ToList();
open FParsec
open System
let inline opt s = optional (skipStringCI s)
let inline w s = skipStringCI s >>. spaces
let inline w1 s = skipStringCI s >>. spaces1
let inline ow1 s = optional (skipStringCI s >>. spaces1)
let str = many1Chars anyChar
let skips strs = Seq.map skipStringCI strs
let skip words = spaces >>. (words |> Seq.map (w1) |> Seq.reduce (>>.))
let strSkip (str : string) = str.Split([|' ' |], StringSplitOptions.RemoveEmptyEntries) |> skip
public abstract class UsersRepositoryAsyncDaoBase<TItem, TListItem, TKey> : UsersDaoBase, IUsersRepositoryAsyncDao<TItem, TListItem, TKey>
{
/// <summary>
/// Контекст безопастности
/// </summary>
protected IPrivateSecurityContext SecurityContext { get; set; }
protected int CurrentUserId { get { return SecurityContext.CurrentUser.WrObj.Id; }}
public Task<IPageable<TListItem>> ListAsync(PagingParams? pagingParams)
class Point {
constructor(public x:number, public y:number) {}
}
class Color {
constructor (public r:number, public g:number, public b:number){}
}
class ColoredPoint extends Point {
constructor(x:number, y:number, public rgb:Color) {