Skip to content

Instantly share code, notes, and snippets.

View NicklausBrain's full-sized avatar
:octocat:
At work

Mykola Mozghovyi NicklausBrain

:octocat:
At work
View GitHub Profile
@NicklausBrain
NicklausBrain / ES5vsES6.js
Created July 22, 2021 19:09 — forked from zeusdeux/ES5vsES6.js
ES5 inheritance vs ES6 inheritance
/* ES6/ES2015 classes */
class A {
constructor() {
this.a = 10
}
print() {
console.log(this.a, this.b)
}
}
@NicklausBrain
NicklausBrain / Msi.psm1
Created April 6, 2018 13:43 — forked from jstangroome/Msi.psm1
Read the ProductVersion from a Windows Installer MSI file via PowerShell
function Get-MsiProductVersion {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true)]
[ValidateScript({$_ | Test-Path -PathType Leaf})]
[string]
$Path
)