Skip to content

Instantly share code, notes, and snippets.

View masudiiuc's full-sized avatar

Md Mahabubul Hasan Masud masudiiuc

View GitHub Profile
@masudiiuc
masudiiuc / git-profile
Last active August 29, 2015 14:27
Git-profile
# @gf3’s Sexy Bash Prompt, inspired by “Extravagant Zsh Prompt”
# Shamelessly copied from https://github.com/gf3/dotfiles
# Screenshot: http://i.imgur.com/s0Blh.png
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM=gnome-256color
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM=xterm-256color
fi
@masudiiuc
masudiiuc / app.js
Last active October 7, 2015 23:02
Write a simple TodoList using AngularJS
'use strict';
var todoAppliction = angular.module("todoApp",[]);
todoAppliction.controller("todoController", todoController);
todoController.$inject =['$scope'];
/**
* Processs an input box enter event
* Ex: on enter add the task in the list
@masudiiuc
masudiiuc / eventListener.js
Created June 2, 2016 17:37
Add listener to dispatch events
var utitlity = (function(){
'use strict';
var observerList = [];
var observe = function (eventName, eventMethod) {
observerList[eventName] = eventMethod;
};
var dispatch = function (eventName, eventParams){
eventParams = eventParams || '';