[C++]
prefer expressions over statements[C++]
prefer immutability over mutability[C++]
prefer composition over inheritance[Qt]
preferSTL
overQTL
containers
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response] | |
"AutoRepeatDelay"="250" | |
"AutoRepeatRate"="13" | |
"BounceTime"="0" | |
"DelayBeforeAcceptance"="0" | |
"Flags"="59" | |
"Last BounceKey Setting"=dword:00000000 | |
"Last Valid Delay"=dword:00000000 |
This file contains 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
//... | |
let fscToolPath = findToolFolderInSubPath "fsc.exe" "packages" | |
let msbuildProps = [ "FscToolPath", fscToolPath ] | |
Target "Build" (fun _ -> | |
!! projectFile | |
|> MSBuildReleaseExt releaseDir msbuildProps "Build" | |
|> Log "AppBuild-Output") |
This file contains 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
namespace Newtonsoft.Json.Converters | |
open Microsoft.FSharp.Reflection | |
open Newtonsoft.Json | |
open System | |
type IdiomaticDuConverter() = | |
inherit JsonConverter() | |
[<Literal>] |
This file contains 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
$script:bg = [Console]::BackgroundColor; | |
$script:first = $true; | |
$script:last = 0; | |
function Write-PromptFancyEnd { | |
Write-Host -NoNewline -ForegroundColor $script:bg | |
$script:bg = [System.ConsoleColor]::Black | |
} |
This file contains 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
module private BusinessLogic = | |
let switchAt pos (str: string) = | |
let str = Seq.toArray str | |
let oldpos = (pos + str.Length - 1) % str.Length | |
let newpos = pos % str.Length | |
let tmp = str.[newpos] | |
str.[newpos] <- str.[oldpos] | |
str.[oldpos] <- tmp |
This file contains 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
module Recharts | |
open Fable.Core.JsInterop | |
open Fable.Recharts | |
open Fable.Recharts.Props | |
open Fable.React | |
open Elmish | |
open Elmish.React | |
module R = Fable.React.Standard | |
module P = Fable.React.Props |
This file contains 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
module Recharts | |
open Fable.Core.JsInterop | |
open Fable.Recharts | |
open Fable.Recharts.Props | |
open Fable.React | |
open Elmish | |
open Elmish.React | |
module R = Fable.React.Standard | |
module P = Fable.React.Props |
To convert a JSON array to be used as generated text[]
column follow the steps below:
Define the following (immutable) function:
create or replace function json_array_to_pg_array(jsonarray jsonb) returns text[]
as $$
begin
return (select array(select jsonb_array_elements_text(jsonarray)));
end;
A very annoying behaviour is that Excel opens an Excel file on the virtual Desktop of an existing Excel Instance and switches to that Desktop.
If you want to avoid this behaviour you can do the following to fix it:
The fix is to call Excel with the /X parameter:
$ assoc .xlsx
.xlsx=Excel.Sheet.12
$ ftype Excel.Sheet.12
OlderNewer