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
/* Custom Fluid Grid System */ | |
.reverse_cgrid:before, | |
.reverse_cgrid:after, | |
.cgrid:before, | |
.cgrid:after { | |
content: '.'; | |
display: block; | |
overflow: hidden; | |
visibility: hidden; |
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
Up Triangle: 25B2 | |
Right Triangle: 25B6 | |
Down Triangle: 25BC | |
Left Triangle: 25C0 |
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
alias glf="git log --author=pankaj --format='%ad %s' --date=short > ../log.txt" | |
alias gl="git log" | |
alias gs="git status" | |
alias rs="rails s" | |
alias rsu="rails s -u" | |
alias rdm="rake db:migrate" | |
alias rc="rails c" | |
alias bp="mate ~/.bash_profile" |
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
function validate_required_field(id, err_msg, parent_selector) { | |
var error_message = err_msg || "Can't be left blank"; | |
var parent_selector = parent_selector || "li"; | |
var $field = $(id).find('input, select, textarea'); | |
var field_val = $field.val(); | |
//log(id); | |
var $error = $field.parents(parent_selector).first().find('.error'); | |
if($.trim(field_val) == '' || $.trim(field_val) == '0') { | |
$error.text(error_message); | |
return false; |
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
/* http://meyerweb.com/eric/tools/css/reset/ | |
v2.0 | 20110126 | |
License: none (public domain) | |
*/ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, |
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
// Truncate a text. Override width to truncate to a specific width. | |
.trunc { | |
white-space:nowrap; | |
overflow:hidden; | |
text-overflow:ellipsis; | |
display:block; | |
width:100%; | |
} | |
// center align divs |
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 BrowserDetect = { | |
init: function () { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(navigator.userAgent) | |
|| this.searchVersion(navigator.appVersion) | |
|| "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function (data) { | |
for (var i=0;i<data.length;i++) { |
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
{"lastUpload":"2020-11-15T14:27:59.811Z","extensionVersion":"v3.4.3"} |