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

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.

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
@hafeez-syed
hafeez-syed / frontendDevlopmentBookmarks.md
Created January 22, 2016 02:54 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@hafeez-syed
hafeez-syed / npm-essentials
Last active June 3, 2016 01:24
Essential node modules for your javascript projects
apidoc
browsersync
del
grunt
gulp
autoprefixer
concat
connect
consolidate
file
"dependencies": {
"angular": "^1.4.8",
"angular-animate": "~1.4.x",
"angular-cache": "git+https://git@github.com/jmdobry/angular-cache#2.3.7",
"angular-cookies": "~1.4.x",
"angular-load": "~0.2.0",
"angular-messages": "~1.4.x",
"angular-mocks": "~1.4.x",
"angular-resource": "~1.4.x",
"angular-route": "~1.4.x",
@hafeez-syed
hafeez-syed / Native functions
Last active January 19, 2017 04:50
Function call, apply and bind
***************************************************************
*************************** CALL ******************************
***************************************************************
<<<<<<<<<<<<<<<<<<<<<<<<<<<<< 1 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// We use `call` to stabilize the value of `this` (as this can be a window object or a caller object)
function hafeez(param1, param2) {
console.log(this);
@hafeez-syed
hafeez-syed / Ubuntu-for-developers.txt
Last active October 17, 2015 01:22
Freash ubuntu installation for developers
Essentials for fresh Ubuntu installation
*******************************************
vim
java
python
nodejs
git
ruby & ROR
apache
@hafeez-syed
hafeez-syed / json_key_replacement.js
Created September 17, 2015 02:41
How to replace json `key` recursively in javascript
// change key as per requirement - I have used ":" in example JSON object below
var replace_key = ":"
, add_key = ""
, rwp = function rewriteProperties(obj) {
if (typeof obj !== "object") return obj
for (var prop in obj) {
if (obj.hasOwnProperty(prop)) {
obj[prop.replace(replace_key, add_key)] = rewriteProperties(obj[prop])
if (prop.indexOf(replace_key) > -1) {
delete obj[prop]
@hafeez-syed
hafeez-syed / Gruntfile.js
Created September 17, 2015 00:22
cleanup
var config = require('./config.json')
, files = {
html: "templates/*.html",
js: ["*.js", "js/**/*.js"],
json: ".json",
css: "css/**/*.css"
}
module.exports = function(grunt) {
grunt.initConfig({

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

The gist