Profile
Achievement
 
    
                arunpjohny's Recent Snippets
- All /
 « Prev 1 Next »
git branch will give us all the branches in the current repository and the current branch will be denoted by a * mark.
        
        
        
            0 
        
        
            1298 
        
                    posted 15 years ago by arunpjohny
            This will display the commit difference between the origin/master branch and the current working branch
        
        
        
            0 
        
        
            1244 
        
                    posted 15 years ago by arunpjohny
            This can be tested using the following piece of code
		var a = [1, 2, 3, 4, 5];
		alert(a.size());
        
        
        
            0 
        
        
            1088 
        
                    posted 15 years ago by arunpjohny
            This function is add 'each' function to the javascript Array object.
        
        
        
            1 
        
        
            956 
        
                    posted 15 years ago by arunpjohny
            The -l switch outputs only the names of files in which the text occurs (instead of each line containing the text), the -i switch ignores the case, and the -r descends into subdirectories.
        
        
        
            0 
        
        
            1238 
        
                    posted 17 years ago by arunpjohny
            I got this code from http://blog.vishalon.net/Post/57.aspx
The actual two methods required are
function doGetCaretPosition (ctrl) {
	var CaretPos = 0;
	// IE Support
	if (document.selection) {
		ctrl.focus ();
		var Sel = document.select...
        
        
        
            3 
        
        
            5088 
        
                    posted 17 years ago by arunpjohny