Другие интересные штуки тут: https://t.me/notes_of_programmer
select schemaname,
relname,
quote_ident(schemaname) || '.' || quote_ident(relname) as full_table_name,
n_live_tup,
n_dead_tup,| using System.Data.Common; | |
| using System.Text; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Diagnostics; | |
| using Microsoft.Extensions.DependencyInjection; | |
| using Microsoft.Extensions.Logging; | |
| namespace PostgresExtensions; | |
| /* |
Другие интересные штуки тут: https://t.me/notes_of_programmer
select schemaname,
relname,
quote_ident(schemaname) || '.' || quote_ident(relname) as full_table_name,
n_live_tup,
n_dead_tup,| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Columns; | |
| using BenchmarkDotNet.Configs; | |
| using BenchmarkDotNet.Jobs; | |
| using BenchmarkDotNet.Reports; | |
| using System; | |
| using System.Text; | |
| namespace Benchmarks | |
| { |
| module AsyncResultModule | |
| type AsyncResult<'a> = Async<Result<'a, exn>> | |
| [<RequireQualifiedAccess>] | |
| module AsyncResult = | |
| // Few basic functions | |
| let bind (f: 'a -> AsyncResult<'b>) (a: AsyncResult<'a>): AsyncResult<'b> = |
| DecryptPluralSightVideos /F "C:\Users\Admin\AppData\Local\Pluralsight\courses" /DB "C:\Users\Admin\AppData\Local\Pluralsight\pluralsight.db" /TRANS /RM /OUT "L:\Course" |
| [<AutoOpen>] | |
| module EnumLikeDuConverter = | |
| open Newtonsoft.Json | |
| open Microsoft.FSharp.Reflection | |
| open System.Collections.Concurrent | |
| open Newtonsoft.Json.Linq | |
| /// see `enumLikeDuConverter` | |
| type EnumLikeDuConverter() = |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content:
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |