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
ssh [email protected] "tar czpf - repo/gpec.git" | tar xzpf - -C /Users/agencymabu002/Desktop/repo/ |
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
// Trim text. | |
function trimText( jquery_obj_to_trim, trim_length ){ | |
var currentText = jquery_obj_to_trim.text(); | |
var newLength = trim_length; | |
var currentTextTrimmed = currentText.substr(0, newLength); | |
var endOfCurrentText = /\W?\s?\b\w+\W*?$/.exec( currentTextTrimmed ); | |
if( endOfCurrentText === null ) return; | |
var endOfCurrentTextLength = endOfCurrentText[0].length; | |
currentTextTrimmed = currentText.substr(0, newLength - endOfCurrentTextLength ); |