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
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
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
| function combine() { | |
| var ret = '', flags = ''; | |
| [ ].forEach.call(arguments, function (exp) { | |
| exp = exp.toString(); | |
| if (exp[0] !== '/') { | |
| flags = exp; | |
| } else { | |
| ret += exp.substr(1, exp.length - 2); | |
| } |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <div id="notices"></div> | |
| <script src="Razor.js"></script> | |
| <script type="application/x-razor-js" data-view-id="notice"> |
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.Web; | |
| namespace TestOfMyDreams { | |
| [TestClass] | |
| public class Test { | |
| [TestMethod] | |
| public void TestRequest(){ | |
| using(var app = MyMvcApplication.Create("C:\\path\\to\\project\\")) |
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
| const noop = () => {}; | |
| export default class CancellablePromise { | |
| constructor(executorOrPromise){ | |
| this._promise = new Promise((resolve, reject) => { | |
| let promise = executorOrPromise; | |
| if(!promise.then) promise = new Promise(executorOrPromise); | |
| promise.then((...args) => { | |
| if(this.cancelled) reject('cancelled', ...args); |
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
| import * as React from 'react'; | |
| type Parse<T> = { parse: (value: string) => T }; | |
| type MaybeParse<T> = T extends string ? {} : Parse<T>; | |
| interface GenericTextboxBaseProps<TModel, TProperties extends keyof TModel> { | |
| model: TModel; | |
| name: TProperties; | |
| display?: (prop: TModel[TProperties]) => string; | |
| } |
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 Microsoft.AspNetCore.Antiforgery.Internal; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Net.Http.Headers; | |
| public class Antiforgery : DefaultAntiforgery | |
| { | |
| public Antiforgery( | |
| Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Antiforgery.AntiforgeryOptions> antiforgeryOptionsAccessor, | |
| IAntiforgeryTokenGenerator tokenGenerator, | |
| IAntiforgeryTokenSerializer tokenSerializer, |
OlderNewer