Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
using System.Linq.Expressions; | |
namespace Microsoft.EntityFrameworkCore | |
{ | |
public static class IQueryableExtensions | |
{ | |
public static IQueryable<TQuery> In<TKey, TQuery>( | |
this IQueryable<TQuery> queryable, | |
IEnumerable<TKey> values, | |
Expression<Func<TQuery, TKey>> keySelector) |
// Define other methods and classes here | |
/// <summary> | |
/// Sample Provider to allow fading in and out | |
/// </summary> | |
public class DelayFadeOutSampleProvider : ISampleProvider | |
{ | |
enum FadeState | |
{ | |
Silence, | |
FadingIn, |
<# | |
.SYNOPSIS | |
Retries a powershell command n-times. | |
.DESCRIPTION | |
The cmdlet is capable of retrying a PowerShell command passed as a [ScriptBlock] according to the user defined number of retries and timeout (In Seconds) | |
.PARAMETER TimeoutInSecs | |
Timeout in secods for each retry. |
/* | |
* Copyright 2016, Matthieu Dumas | |
* This work is licensed under the Creative Commons Attribution 4.0 International License. | |
* To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/ | |
*/ | |
/* Usage : | |
* var log = Logger.get("myModule") // .level(Logger.ALL) implicit | |
* log.info("always a string as first argument", then, other, stuff) | |
* log.level(Logger.WARN) // or ALL, DEBUG, INFO, WARN, ERROR, OFF |
using System; | |
using System.Security.Cryptography; | |
using System.Xml; | |
namespace RSACryptoServiceProviderExtensions | |
{ | |
public static class RSACryptoServiceProviderExtensions | |
{ | |
public static void FromXmlString(this RSACryptoServiceProvider rsa, string xmlString) | |
{ |
Forked from piscisaureus
Locate the section for your vsts remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = ssh://my-vsts@my-vsts.visualstudio.com:22/DefaultCollection/Project-Name/_git/Repo-Name
image: docker:git | |
services: | |
- docker:dind | |
variables: | |
DOCKER_DRIVER: overlay | |
# You can find this on your Gitlab repo page, under "Registry" | |
CONTAINER_GITLAB: registry.gitlab.com/<USER OR GROUP NAME>/<REPO NAME> | |
# It's just a tag, use whatever you want : back, front, test, staging... | |
CONTAINER_TAG: latest |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title>Blazor Loading</title> | |
<base href="/" /> | |
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" /> | |
<link href="css/site.css" rel="stylesheet" /> | |
</head> |
@page "/grid/templates" | |
@using TelerikBlazor.App.Models | |
@inject NorthwindContext nwContext | |
<h4> Row Template </h4> | |
<KendoGrid Data=@GridData Height="@Height"> | |
<RowTemplate Context="product"> | |
@if (selectedId == product.ProductId) |