Skip to content

Instantly share code, notes, and snippets.

Avatar

Artak artakvg

View GitHub Profile
View Sonate_No._14_Moonlight_1st_Movement
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<identification>
<encoding>
<software>MuseScore 2.2.1</software>
<encoding-date>2018-04-22</encoding-date>
<supports element="accidental" type="yes"/>
<supports element="beam" type="yes"/>
<supports element="print" attribute="new-page" type="yes" value="yes"/>
View keybase.md

Keybase proof

I hereby claim:

  • I am artakvg on github.
  • I am artakvg (https://keybase.io/artakvg) on keybase.
  • I have a public key ASAonCOSrVeMWCMH50qdx_HZHdqBLm3zoWyh585Qg_Q2mAo

To claim this, I am signing this object:

@artakvg
artakvg / optional-or-required-params-from-base.ts
Created Mar 14, 2019
some of parameters from original type - Typescript
View optional-or-required-params-from-base.ts
type Diff<T, U> = T extends U ? never : T;
type OptionalExceptFor<T, TRequired extends keyof T> = Partial<T> & Pick<T, TRequired>;
type RequiredExceptFor<T, TOptional extends keyof T> = Pick<T, Diff<keyof T, TOptional>> & Partial<T>;
View node-setup-5.7.0.sh
#!/bin/bash
nodeVersion="v5.7.0"
nvm install "$nodeVersion"
nvm alias default "$nodeVersion"
View node-setup-4.0.0.sh
#!/bin/bash
nodeVersion="v4.0.0"
## install libs
sudo apt-get -y update
sudo apt-get -y install build-essential
sudo apt-get -y install libssl-dev
sudo apt-get -y install libkrb5-dev
sudo apt-get -y install git
View node-setup-0.12.7.sh
#!/bin/bash
# you can use "v4.0.0" for node 4.0.0 version
nodeVersion="v0.12.7"
## install libs
sudo apt-get -y update
sudo apt-get -y install build-essential
sudo apt-get -y install libssl-dev
sudo apt-get -y install libkrb5-dev