Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
| JSONAPIObject: | |
| description: Includes the current JSON:API version for this specification as well as optional meta information | |
| type: object | |
| required: | |
| - version | |
| properties: | |
| version: | |
| type: string | |
| default: '1.0' | |
| example: '1.0' |
| SELECT name FROM sys.databases WHERE name = 'MyScriptDatabase1' |
| param([string] $PfxFilePath, $Password) | |
| # You may provide a [string] or a [SecureString] for the $Password parameter. | |
| $absolutePfxFilePath = Resolve-Path -Path $PfxFilePath | |
| Write-Output "Importing store certificate '$absolutePfxFilePath'..." | |
| Add-Type -AssemblyName System.Security | |
| $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 | |
| $cert.Import($absolutePfxFilePath, $Password, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]"PersistKeySet") |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #requires -version 2 | |
| <# | |
| .SYNOPSIS | |
| <Overview of script> | |
| .DESCRIPTION | |
| <Brief description of script> | |
| .PARAMETER <Parameter_Name> | |
| <Brief description of parameter input required. Repeat this attribute if required> |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| // Quickly create Funcs that memoize expensive computations. | |
| // | |
| // In this example, ExpensiveMethod is only called once! | |
| // | |
| // var cached = CachedFunc.Create ((int x, string y) => x + ExpensiveMethod (y)); | |
| // for (int i = 0; i < 1000; i++) | |
| // cached (123, "hello"); | |
| public static class CachedFunc | |
| { |
| public class SiteScrape : HttpTaskAsyncHandler | |
| { | |
| public override async Task ProcessRequestAsync(HttpContext context) | |
| { | |
| using (var http = new HttpClient()) | |
| { | |
| var downloadTasks = new List<Task<string>> { | |
| http.GetStringAsync("http://bing.com"), | |
| http.GetStringAsync("http://google.com"), | |
| http.GetStringAsync("http://oredev.org"), |
| # Run this in the project repo from the command-line | |
| # http://stackoverflow.com/a/4593065/99923 | |
| git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}' |