Skip to content

Instantly share code, notes, and snippets.

View vzarytovskii's full-sized avatar
🐱
Slacking

Vlad Zarytovskii vzarytovskii

🐱
Slacking
View GitHub Profile
@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.

@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
#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 / .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

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:

# 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
@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]
Section "Device"
Identifier "Parallels Video"
Driver "prlvideo"
EndSection
# Parallels Monitor section
Section "Monitor"
Identifier "Parallels Monitor"
VendorName "Parallels Inc."
ModelName "Parallels Monitor"
#!perl
use warnings;
use strict;
my $x = [1,2,3];
my $y = [2,3,4];
my $t = [3,4,5];
sub substract {
my @arrays = @_;
#!/usr/bin/perl
use Data::Dumper;
$LOVE= AMOUR.
true.cards. ecstacy.crush
.hon.promise.de .votion.partners.
tender.truelovers. treasure.affection.
devotion.care.woo.baby.ardor.romancing.
enthusiasm.fealty.fondness.turtledoves.