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
@media (max-width:480px){ | |
input, textarea { | |
font-size: 16px !important; | |
} | |
} |
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
.modal-big { | |
width: 940px; | |
width: 100%; | |
max-width: 750px; | |
margin-left:-375px; | |
} | |
@media (max-width: 767px) { | |
.modal-big { | |
width: auto; | |
margin-left: auto; |
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(){ | |
$('.no-comma').on('input',function(e){ | |
var input = $(this), | |
newVal = input.val().replace(/\,/gi,''); | |
input.val(newVal); | |
}); | |
}); |
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 res = ''; | |
for(var i = 1; i <= 20; i++){ | |
for(var j = 1; j <= 20; j++){ | |
res += (i * j) + "\t\t"; | |
} | |
console.log(res+"\n"); | |
res = ''; | |
} |
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
'use strict'; | |
angular.module('whateverApp') | |
.filter('phone', function () { | |
return function (input) { | |
if(!input){ | |
return ''; | |
} | |
return input.replace(/(\d{3})(\d{3})(\d{4})/, '($1) $2-$3'); | |
}; |
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
daw - delete a word and spaces | |
diw - delete only word | |
* - find next word under cursor | |
C-h delete a char | |
C-w delete last word | |
C-u delete current line | |
C-r0 paste | |
C-r=math calculate |