Skip to content

Instantly share code, notes, and snippets.

Shoaib Ud-Din shoaibuddin

Block or report user

Report or block shoaibuddin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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){
@shoaibuddin
shoaibuddin / index.html
Created Aug 26, 2013
Google Maps Local POIs Search
View index.html
<!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 / 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();
View programming-basics.js
//Variable
var name = 'Altaf';
//String
var name = 'Altaf';
//Number
var something = 10;
//Object or Empty object
View anular-watcher-count
javascript: (function() {
function getWatchCount() {
var total = 0;
var scopeIds = {};
angular.forEach(
document.querySelectorAll( ".ng-scope , .ng-isolate-scope" ),
countWatchersInNode
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:
https://coderwall.com/p/euwpig/a-better-git-log
You can’t perform that action at this time.