Skip to content

Instantly share code, notes, and snippets.

View hafeez-syed's full-sized avatar
:octocat:
dont stop learning

Hafeez Syed hafeez-syed

:octocat:
dont stop learning
  • Melbourne, Australia
View GitHub Profile
var x = 100,
y = 012, // Octal number which is equal to 10
z = 002;
console.log(x+y+z); // 112 not 114
___________________________________________________________________________
var x = 100,
y = 0x12, // Hexadecimal number which is equal to 18, 0x10 = 16, 0x20 = 32, 0x30 = 48

Code of Conduct

All attendees, speakers, sponsors and volunteers at our event are required to agree with the following code of conduct. Organisers will enforce this code throughout the event. We are expecting cooperation from all participants to help ensuring a safe environment for everybody.

Need Help?

Contact one of the event organisers. The list of organisers for each event can be seen on event page.

The Quick Version

Our event is dedicated to providing a harassment-free event experience for everyone, regardless of gender, age, sexual orientation, disability, physical appearance, body size, race, or religion (or lack thereof). We do not tolerate harassment of event participants in any form. Sexual language and imagery is not appropriate for any event venue, including talks, workshops, parties, Twitter and other online media. Event participants violating these rules may be sanctioned or expelled from the event at the discretion of the organisers.

console.log(this); // window (global scope)
console.log('\n\n ****************************** \n\n');
this.hafeez = 'Hafeez Syed'; // `this.hafeez` will be `window.hafeez` because this -> window
console.log(this.hafeez); // Hafeez Syed
console.log(window.hafeez); // Hafeez Syed
console.log(hafeez); // Hafeez Syed
function strictPerson() {
'use strict';
console.log(this); // undefined
}
strictPerson();
function linientPerson() {
console.log(this); // window
}
linientPerson();
/**
*********************************
*********************************
*********************************
module exports
*********************************
*********************************
*********************************
*/
"use strict";
var animal = {
kind: 'human'
};
console.log(animal);
var hafeez = {};
'use strict';
function Person(first_name, last_name) {
this.first_name = first_name;
this.last_name = last_name;
};
Person.prototype.full_name = function() {
return this.first_name + ' ' + this.last_name;
};
var phonePattern = /^(\+61|0061|0)[1|2|3|7|8]|1[3|8](\d{8})$/;
var mobilePattern = /^(\+61|0061|0)[4](\d{8})$/;
var regex1 = /(\+61+\s+[4]+\s)((\d{4})+\s+(\d{4}))/; // +61 4 0000 0000
var regex2 = /(\+61+\s+[4]+(\d{2})+\s)((\d{3})+\s+(\d{3}))/; // +61 400 000 000
var regex3 = /(0061+\s+[4]+\s)((\d{4})+\s+(\d{4}))/; // 0061 4 0000 0000
var regex4 = /(\+61+\s+[4]+(\d{2})+\s)((\d{3})+\s+(\d{3}))/; // 0061 400 000 000
var regex5 = /(04+\s)((\d{4})+\s+(\d{4}))/; // 04 0000 0000
{
/*
* Possible values:
* - the name of a built-in config
* - the name of an NPM module which has a "main" file that exports a config object
* - a relative path to a JSON file
*/
"extends": "tslint:latest",
"rules": {
"class-name": true,
Edit '/etc/sysconfig/jenkins' and add 'prefix=/jenkins' to 'JENKINS_ARGS'
**************************************************************************
JENKINS_ARGS="--prefix=/jenkins"
Comment out the default server config in '/etc/nginx/nginx.conf'
and create following file
'/etc/nginx/conf.d/domain.conf'
*************************************************