Skip to content

Instantly share code, notes, and snippets.

View shoaibuddin's full-sized avatar

Shoaib Ud-Din shoaibuddin

View GitHub Profile
@shoaibuddin
shoaibuddin / fbAndTwitter.js
Created May 15, 2014 16:52
Simple Ajax call to get FaceBook and Twitter User Data - POC
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();
@shoaibuddin
shoaibuddin / programming-basics.js
Last active August 29, 2015 14:21
Programming Basics
//Variable
var name = 'Altaf';
//String
var name = 'Altaf';
//Number
var something = 10;
//Object or Empty object
@shoaibuddin
shoaibuddin / canJS-skeleton.js
Last active December 21, 2015 03:39
CanJS Skeleton
/**
* 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){
@shoaibuddin
shoaibuddin / index.html
Created August 26, 2013 12:31
Google Maps Local POIs Search
<!DOCTYPE html>
<head>
<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">
<style>
@shoaibuddin
shoaibuddin / anular-watcher-count
Created March 29, 2017 14:50
anular-watcher-count
javascript: (function() {
function getWatchCount() {
var total = 0;
var scopeIds = {};
angular.forEach(
document.querySelectorAll( ".ng-scope , .ng-isolate-scope" ),
countWatchersInNode
# 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:
https://coderwall.com/p/euwpig/a-better-git-log