Skip to content

Instantly share code, notes, and snippets.

View dharmayejju's full-sized avatar

Dharma Teja Yejju dharmayejju

View GitHub Profile
Difference between "variable" and "field"
==========================================
Field: Defined in class
Variable: Defined in methods
Eg:
class Example{
void firstMethod(){
int myVar = 12;
myField = 42;
On MacOS terminal
===============
1. Run the following command to install the express generator
~ sudo npm install express-generator -g
2. Create a folder for the application
~ mkdir azurenodejsapp
~ cd azurenodejsapp
1. Live share session for vs code/ vs 2017 (https://visualstudio.microsoft.com/services/live-share/)
My collaboration session URL - https://insiders.liveshare.vsengsaas.visualstudio.com/join?9CC0302ADE6C6C48499FCA713746C1D7D63B
2. Intellicode
Azure
=======
1. AppServices
2. Functional Apps
3. Cosmos DB
4. Virtual Machines
//Microsoft Remote Desktop from Mac
fn + ctrl + alt (option) + delete
//Remote desktop from Parallels (Remote from Windows on Mac)
fn + ctrl + alt (option) + right arrow
//Masking inputs including char and digits
str = str.replace(/[a-zA-Z0-9-](?=[a-z0-9A-Z-]{4})/g, '*');
//Masking just digits
str = str.replace(/\d(?=\d{4})/g, "*");