#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Write-Host "SYSTEM_TEAMPROJECT: $ENV:SYSTEM_TEAMPROJECT" | |
Write-Host "SYSTEM_TEAMFOUNDATIONSERVERURI: $ENV:SYSTEM_TEAMFOUNDATIONSERVERURI" | |
Write-Host "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: $ENV:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI" | |
Write-Host "SYSTEM_COLLECTIONID: $ENV:SYSTEM_COLLECTIONID" | |
Write-Host "SYSTEM_DEFAULTWORKINGDIRECTORY: $ENV:SYSTEM_DEFAULTWORKINGDIRECTORY" | |
Write-Host "BUILD_DEFINITIONNAME: $ENV:BUILD_DEFINITIONNAME" | |
Write-Host "BUILD_DEFINITIONVERSION: $ENV:BUILD_DEFINITIONVERSION" | |
Write-Host "BUILD_BUILDNUMBER: $ENV:BUILD_BUILDNUMBER" | |
Write-Host "BUILD_BUILDURI: $ENV:BUILD_BUILDURI" | |
Write-Host "BUILD_BUILDID: $ENV:BUILD_BUILDID" |
from PySide import QtGui | |
folder = str(QtGui.QFileDialog.getExistingDirectory(None, "Select Directory")) | |
a = Gui.Selection.getSelection() | |
count = 0 | |
import ImportGui | |
options = None | |
if hasattr(ImportGui, "exportOptions"): | |
options = ImportGui.exportOptions(".step") | |
for b in a: | |
objs = [] |
employerCodeExists(): AsyncValidatorFn { | |
return (control: AbstractControl): Observable<ValidationErrors | null> => { | |
const hasEmployerCode = this.hasEmployerCodeFormControl.value; | |
const controlValue: string = control.value; | |
// Note: see https://stackoverflow.com/questions/36919011/how-to-add-debounce-time-to-an-async-validator-in-angular-2/62662296#62662296 | |
// for explanation of why this is the most correct way to do async validation with debounce | |
if (hasEmployerCode && controlValue) { | |
return of(controlValue) | |
.pipe( |
import FileHound from "filehound"; | |
import { promises as fs } from "fs"; | |
import path from "path"; | |
import { promisify } from "util"; | |
// | |
// const packages = await FileHound.create() | |
// .paths(`packages`) | |
// .directory() | |
// .depth(1) | |
// .find(); |
using System; | |
using Serilog; | |
using Serilog.Configuration; | |
namespace ConsoleApplication8 | |
{ | |
static class Program | |
{ | |
static void Main() | |
{ |
Install the Add the Microsoft.AspNet.HttpOverrides package | |
In your Configure() method add | |
app.UseOverrideHeaders(new OverrideHeaderMiddlewareOptions | |
{ | |
ForwardedOptions = ForwardedHeaders.XForwardedFor | | |
ForwardedHeaders.XForwardedProto | |
}); |
/// <summary> | |
/// Creates color with corrected brightness. | |
/// </summary> | |
/// <param name="color">Color to correct.</param> | |
/// <param name="correctionFactor">The brightness correction factor. Must be between -1 and 1. | |
/// Negative values produce darker colors.</param> | |
/// <returns> | |
/// Corrected <see cref="Color"/> structure. | |
/// </returns> | |
public static Color ChangeColorBrightness(Color color, float correctionFactor) |
#Comprehensive Introduction to @ngrx/store By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
alias g=git | |
alias ls='/bin/ls -F --color=tty --show-control-chars' | |
alias ga='gitk --all&' | |
alias gs='git st' |
using System; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
var stack = new Stack(); | |
stack.Push(5); | |
stack.Push(4); | |
stack.Push(3); |