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
| @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> |
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
| using Nemerle.Collections; | |
| using Nemerle.Extensions; | |
| using Nemerle.Compiler; | |
| using System.Console; | |
| using Nemerle.Text; | |
| using Nemerle.Utility; | |
| using System; | |
| using System.IO; |
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
| 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; |
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
| 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 } }; |
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.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; |
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
| 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; |
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
| 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(); |
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
| 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 |
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 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) |
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
| 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) { |
OlderNewer