Skip to content

Instantly share code, notes, and snippets.


Shoaib Ud-Din shoaibuddin

View GitHub Profile
View git-log-beautifier
# Issue the command below:
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# When you want to beautify the git log, use the following command:
git lg
# Reference:
View anular-watcher-count
javascript: (function() {
function getWatchCount() {
var total = 0;
var scopeIds = {};
document.querySelectorAll( ".ng-scope , .ng-isolate-scope" ),
shoaibuddin / index.html
Created Aug 26, 2013
Google Maps Local POIs Search
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Detect Location and Search POIs</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
View canJS-skeleton.js
* This CanJS Skeleton module file.
* This file is uses requireJS, JQuery.
* @author Shoaib Ud-Din
* @version 20140513
* @requires requireJS, JQuery
define(['jquery','can','maskedinput','domReady!'], function($, can){
View programming-basics.js
var name = 'Altaf';
var name = 'Altaf';
var something = 10;
//Object or Empty object
shoaibuddin / fbAndTwitter.js
Created May 15, 2014
Simple Ajax call to get FaceBook and Twitter User Data - POC
View fbAndTwitter.js
var tfriendsCount = null;
var tfollowersCount = null;
var tfavouritesCount = null;
var tstatusesCount = null;
var tlistedCount = null;
google.load("visualization", "1", {packages:["corechart"]});
$("#getTweets").bind("click", function() {
var twitterUsername = $("#twitterUsername").val();