This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Variable | |
var name = 'Altaf'; | |
//String | |
var name = 'Altaf'; | |
//Number | |
var something = 10; | |
//Object or Empty object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
function getWatchCount() { | |
var total = 0; | |
var scopeIds = {}; | |
angular.forEach( | |
document.querySelectorAll( ".ng-scope , .ng-isolate-scope" ), | |
countWatchersInNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |