Skip to content

Instantly share code, notes, and snippets.

View adeelhussain's full-sized avatar

Adeel hussain adeelhussain

View GitHub Profile
@muhammadfaizan
muhammadfaizan / README.md
Last active January 15, 2019 13:56
Custom AWS Deployments using EC2

Custom AWS Deployments using EC2

In this talk, Mashhood share how we can configure "git push deployments". Using Git and EC2 we can quickly configure a deployment for our selves with minimal efforts. Then he also shares the deployment for S3 alongside this. Watch it on Youtube

Deployment Flow

  1. Create EC2 instance.
  2. Configure SSH alias
  3. Setup the instance
@shahzadns
shahzadns / $scope.$watch
Last active December 22, 2017 09:18
Watcher demonstration on angular 1.x scope properties - using built-in set, get of objects.
/**
* Created on: Dec 22 2017
* Created by: Shahzad Nawaz
* Derived from different sources, Stakoverflow, Blogs, experience.
*/
console.clear(); //--snippets - clear prev run log
/* rocking Scope class for $watch only */
function Scope() {
@shahzadns
shahzadns / AngularJS-BaseController.js
Last active February 16, 2019 18:23
This is an example for using a "Base Controller" in an AngularJS application, to get done some basic tasks like destroying $rootscope listeners, or any third-party component.
/**
* @title: `setting up BaseCtrl` in AngularJS 1.3.x
* @author: Shahzad Nawaz
* @dated: 2/28/2015.
*/
(function () {
'use strict';
/*Base Controller starts*/
@karbassi
karbassi / index.html
Created October 21, 2010 22:02
How to handle single and double click events separately in javascript.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Single and Double Click</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="the_div"></div>
<span>Double click the block</span>