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 class NoteContext | |
{ | |
private readonly IMongoDatabase _database = null; | |
public NoteContext(IOptions<Settings> settings) | |
{ | |
var client = new MongoClient(settings.Value.ConnectionString); | |
if (client != null) |
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
//Define your own session and add your custom field to it | |
//Then, you can inject MyAppSession and use it's new property in your project. | |
public class MyAppSession : ClaimsAbpSession, ITransientDependency | |
{ | |
public MyAppSession( | |
IPrincipalAccessor principalAccessor, | |
IMultiTenancyConfig multiTenancy, | |
ITenantResolver tenantResolver, | |
IAmbientScopeProvider<SessionOverride> sessionOverrideScopeProvider) : | |
base(principalAccessor, multiTenancy, tenantResolver, sessionOverrideScopeProvider) |
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 class StringContentRazorProject : RazorLightProject | |
{ | |
public StringContentRazorProject(Func<string, Stream> getContentFunc, Func<string, bool> existsCheckFunc) | |
{ | |
this.GetContentFunc = getContentFunc; | |
this.ExistsCheckFunc = existsCheckFunc; | |
} | |
public Func<string, Stream> GetContentFunc { get; } | |
public Func<string, bool> ExistsCheckFunc { get; } |
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
Param( | |
[string]$sourcesDirectory, #the root of your project | |
[string]$testAssembly, #the file pattern describing test assemblies to look for | |
[string]$testFiltercriteria="", #test filter criteria (as in Run Visual Studio Tests task) | |
[string]$openCoverFilters="+[*]*" #OpenCover-specific filters | |
) | |
. $PSScriptRoot\vsts-task-lib\LongPathFunctions.ps1 | |
. $PSScriptRoot\vsts-task-lib\TraceFunctions.ps1 | |
. $PSScriptRoot\vsts-task-lib\LegacyFindFunctions.ps1 |
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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Mime type checker</title> | |
<script type="text/javascript" src="/jquery.min.js"></script> | |
<script> | |
$(function () { | |
var result = $('div#result'); | |
if (window.FileReader && window.Blob) { |
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
NetLimiter 3 | |
Registration name: Peter Raheli | |
Registration code: C99A2-QSSUD-2CSBG-TSRPN-A2BEB | |
NetLimiter 4 | |
Registration Name: Vladimir Putin #2 | |
Registration Code: XLEVD-PNASB-6A3BD-Z72GJ-SPAH7 | |
https://www.netlimiter.com/download | |
# Netlimiter Full Netlimiter Activated Netlimiter cracked Netlimiter Full Version Netlimiter Serial Netlimiter keygen Netlimiter crack Netlimiter 4 serial Netlimiter 4 Crack Netlimiter 4 register Netlimiter 4 patch Netlimiter full Full version Netlimiter 4 Activated Netlimiter 4 Cracked Netlimiter Pro |
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.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Security.Claims; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Authentication; | |
using Microsoft.AspNetCore.Authentication.OAuth; | |
using Newtonsoft.Json.Linq; |
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
Telerik.Sitefinity.Compiler.exe /url="http://localhost:8080" /appdir="D:\Projects\SitefinityWebApp" /username="sfadmin" /password="admin@2" /strategy="Frontend" /membershipprovider="Default" |
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 Microsoft.AspNetCore.Hosting; | |
using MacsASPNETCore; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Mime; | |
using System.Reflection; | |
using System.Security; | |
using System.Security.Cryptography; |
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 random() private view returns (uint8) { | |
return uint8(uint256(keccak256(block.timestamp, block.difficulty))%251); | |
} |