Skip to content

Instantly share code, notes, and snippets.

View vzarytovskii's full-sized avatar
🐱
Slacking

Vlad Zarytovskii vzarytovskii

🐱
Slacking
View GitHub Profile
Section "Device"
Identifier "Parallels Video"
Driver "prlvideo"
EndSection
# Parallels Monitor section
Section "Monitor"
Identifier "Parallels Monitor"
VendorName "Parallels Inc."
ModelName "Parallels Monitor"
@vzarytovskii
vzarytovskii / openpgp.txt
Created February 10, 2016 22:53
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:6b19bd1bb9173febf2d7710bf3ccc79783649f12]
# cat << ►_◄ > /dev/null
# -- general -------------------------------------------------------------------
#set-option -g default-shell /usr/local/bin/fish
set -g default-terminal "screen-256color" # colors!
setw -g xterm-keys on
set -s escape-time 0 # fastest command sequences

Keybase proof

I hereby claim:

  • I am vzarytovskii on github.
  • I am vlza (https://keybase.io/vlza) on keybase.
  • I have a public key ASA_AU9tyPHcya0GiuXFcXvB4H3I2CNhqBDXedjSN-_ytAo

To claim this, I am signing this object:

@vzarytovskii
vzarytovskii / .gitattributes
Created August 21, 2017 09:22
.gitattributes for VS projects
*.cs diff=csharp
*.csproj merge=union
*.sln merge=union
* text=auto
*.txt text
*.md text
*.fsi text eol=crlf
*.fs text eol=crlf
*.cs text eol=crlf
*.sln text eol=crlf
#define MAX 100000
void printPairs(int arr[], int arr_size, int sum)
{
int i, temp;
bool s[MAX] = {0};
for (i = 0; i < arr_size; i++)
{
temp = sum - arr[i];
if (temp >= 0 && s[temp] == 1)
printf("sum=%d is (%d, %d) n", sum, arr[i], temp);
@vzarytovskii
vzarytovskii / fsharp7.md
Last active November 7, 2022 11:50
fsharp7.md
post_title username microsoft_alias featured_image categories summary desired_publication_date
What’s new in F# 7
fsharp512.png
F#, .NET, .NET Core
F# 7 is now released
2022-11-15
@vzarytovskii
vzarytovskii / Discriminated Unions.md
Last active December 12, 2022 13:58
F# Compiler Notes

Discriminated unions notes

General

Reference DUs

Notes

Reference DUs constructors (cases) are represented as nested inherited classes.

marp title theme progress paginate
true
F#7 and next
uncover
true
true

What's new in F# 7

Method Mean Error StdDev Median Min Max Gen0 Gen1 Gen2 Allocated
ParseAndTypeCheckProject_Resumable 382.906 ms 16.6768 ms 17.1258 ms 377.704 ms 356.566 ms 424.642 ms 2000.0000 1000.0000 1000.0000 229.03 MB
ParseAndTypeCheckProject_Normal 359.397 ms 18.5518 ms 19.8502 ms 363.683 ms 333.375 ms 401.576 ms 2000.0000 1000.0000 1000.0000 229.56 MB
ParseAllFilesInProjectSequential_Resumable 20.691 ms 1.2518 ms 1.3913 ms 20.766 ms 18.529 ms 23.995 ms 34.5395 17.2697 - 6.79 MB
ParseAllFilesInProjectSequential_Normal 20.904 ms 0.8382 ms 0.9653 ms 20.669 ms 19.498 ms 22.755 ms 33.1790 16.2037 -