Visual Studio Code: hide .js and files

In File > Preferences > User Settings hide .js files when there is a matching .ts file.

 "files.exclude": {
 "**/.git": true,
 "**/.svn": true,
 "**/.hg": true,
 "**/.DS_Store": true,
 "**/*.js": {"when": "$(basename).ts"},
 "**/*.map": {"when": "$(basename).map"}

Downgrade Nuget package

As of Nuget 2.8 there is a feature to downgrade a package.

Nuget 2.8 Release Notes


The following command entered into the Package Manager Console will downgrade the couchbase client to version

Update-Package CouchbaseNetClient -Version


Updating 'CouchbaseNetClient' from version '1.3.3' to '' in project [project name].
 Removing 'CouchbaseNetClient 1.3.3' from [project name].
 Successfully removed 'CouchbaseNetClient 1.3.3' from [project name].

Something to note as per crimbo below:

“this approach doesn’t work for downgrading from one prerelease version to other prerelease version – it only works for downgrading to a release version”


Simple regex

Regex quick reference


[abc] A single character: a, b or c
[^abc] Any single character but a, b, or c
[a-z] Any single character in the range a-z
[a-zA-Z] Any single character in the range a-z or A-Z
^ Start of line
$ End of line
\A Start of string
\z End of string
. Any single character
\s Any whitespace character
\S Any non-whitespace character
\d Any digit
\D Any non-digit
\w Any word character (letter, number, underscore)
\W Any non-word character
\b Any word boundary character
(…) Capture everything enclosed
(a|b) a or b
a? Zero or one of a
a* Zero or more of a
a+ One or more of a
a{3} Exactly 3 of a
a{3,} 3 or more of a
a{3,6} Between 3 and 6 of a


i case insensitive
m make dot match newlines
x ignore whitespace in regex
o perform #{…} substitutions only once


Um site que cataloga cheat sheets.

Fica aqui o registo de algumas sheets que são úteis para mim:


Plugin para criar mapas subterrâneos

Subway Map Visualization jQuery Plugin –


Com este plugin jQuery é possível criar mapas de visualizações subterrâneas.