Nota: En la nuevas actualizaciones de Fedora se usa "dnf" en ves de "yum"
vimActualizar todos los paquetes de Fedora
sudo yum update | function myfunction(param) { | |
| return (param === undefined) ? true : param; | |
| } | |
| /* Testing 'myfunction' in console.. | |
| // Default value example | |
| > myfunction(); | |
| true |
| /** | |
| * Separar fecha | |
| * @param {string} date (fecha en formato: yyyy-mm-dd) | |
| * @param {string} output (DAY, MONTH, YEAR, NAME_MONTH) | |
| * @returns {string} | |
| */ | |
| function separateDate(date, output) { | |
| var response; | |
| var arr_date = date.split('-'); | |
| var arr_day = arr_date[2].split(' '); |
| // Sections | |
| $sections: ( | |
| 'section-1', | |
| 'section-2', | |
| 'section-3', | |
| 'section-4', | |
| 'section-5'); | |
| // Section colors | |
| $section-colors: (#6b9297, #f2be61, #7bc2a3, #bd8c88, #d02556); |
Nota: En la nuevas actualizaciones de Fedora se usa "dnf" en ves de "yum"
vimActualizar todos los paquetes de Fedora
sudo yum update | /* | |
| '&' (ampersand) becomes '&' | |
| '"' (double quote) becomes '"' | |
| ''' (single quote) becomes ''' | |
| '<' (less than) becomes '<' | |
| '>' (greater than) becomes '>' | |
| */ | |
| return mystring.replace(/&/g, "&").replace(/>/g, ">").replace(/</g, "<").replace(/"/g, """); |
| $("#button").click(function() { | |
| $('html, body').animate({ | |
| scrollTop: $("#elementtoScrollToID").offset().top | |
| }, 2000); | |
| }); |
| $(document).ready(function() { | |
| // Create the banner | |
| $('#banner').flexslider({ | |
| animation: "slide", | |
| pauseOnAction: false, | |
| pauseOnHover: true, | |
| itemWidth: 200, | |
| itemMargin: 20, | |
| minItems: getGridSize(), | |
| maxItems: getGridSize(), |
| <!-- begin snippet: js hide: false --> | |
| <!-- language: lang-css --> | |
| #myDiv { | |
| display: none; | |
| opacity: 0; | |
| padding: 5px; | |
| color: #600; | |
| background-color: #CEC; |
| /* | |
| * Caja que acepta solo números enteros | |
| */ | |
| $('#txtonlyintegers').keypress(function (e) { | |
| var regex = new RegExp("^[1234567890]+$"); | |
| var str = String.fromCharCode(!e.charCode ? e.which : e.charCode); | |
| if (regex.test(str)) { | |
| return true; | |
| } | |
| e.preventDefault(); |