This file contains hidden or 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
| $(document).on('ready', function() { | |
| function your_shitty_function () { | |
| var animationTime = 300; | |
| var quietPeriod = 100; | |
| var lastAnimation = 0; | |
| $('.your-shit-class').on('mousewheel', function(e) { | |
| //Getting actual time when event success | |
| var timeNow = new Date().getTime(); |
This file contains hidden or 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
| Comparación entre diferentes metodologías de trabajo con CSS: | |
| OOCSS: | |
| ██████╗ ██████╗ ██████╗ ███████╗ ███████╗ | |
| ██╔═══██╗ ██╔═══██╗ ██╔════╝ ██╔════╝ ██╔════╝ | |
| ██║ ██║ ██║ ██║ ██║ ███████╗ ███████╗ | |
| ██║ ██║ ██║ ██║ ██║ ╚════██║ ╚════██║ |
This file contains hidden or 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
| class GalleryName | |
| constructor: (name, form, confirmBtn, cancelBtn, editBtn)-> | |
| @name = $('.js-name') | |
| @form = $(form) | |
| @confirmBtn = $(confirmBtn) | |
| @cancelBtn = $(cancelBtn) | |
| @editBtn = $(editBtn) | |
| if @name.lenght | |
| @galleryNameValue = @name.html().trim() |
This file contains hidden or 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
| <%= render 'shared/owner/steps' %> | |
| <section class="panel panel-default wizard"> | |
| <div class="panel-body"> | |
| <div class="row"> | |
| <div class="col-md-8 col-md-offset-2"> | |
| <!-- Content --> | |
| <h3>Show off your business to potential customers! <br>Upload between 3 and 16 images.</h3> |
This file contains hidden or 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
| setData: function (path, data) { | |
| var model = this.getModel(); | |
| // Target initialize as a root reference of model (which is an object!) | |
| var target = model.getData(); | |
| var aPath = path ? path.split("/") : "/"; | |
| // This function is named 'getTarget' but it also does assign data to the target. | |
| var getTarget = function (pathParts, i) { | |
| if (typeof i === "undefined") i = 0; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <h1>Hola mundo</h1> |
This file contains hidden or 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
| // Inicio del programa | |
| // 1. Recibir el número a evaluar | |
| const num = 4; | |
| // Fix: Comproboar si el valor es efectivamente un número o no | |
| if (typeof num == "number") { | |
| // Acá podemos estar seguros de que num es un número | |
| // 2. Comprobar si el número es positivo, negativo o cero |
This file contains hidden or 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
| let preferencia = undefined; | |
| if (preferencia != undefined || preferencia != null) { | |
| if (preferencia == "Frio") { | |
| replatearseLaVida(); | |
| } else if (preferencia == "Caliente") { | |
| calentarAgua(); | |
| if (tipoDeCafe != undefined || tipoDeCafe != null) { |
This file contains hidden or 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
| // Inicio del programa | |
| // 1. It's a ghost | |
| // 2. Recibir una tarjeta en particular | |
| let card = "Mastercard"; | |
| // Fix: Comprobar que el usuario ingresó una tarjeta | |
| if (card != undefined || card != null) { |
This file contains hidden or 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
| // Inicio del programa | |
| // 1. Crear un diccionario de tarjetas y sus posibles valores de cuotas. | |
| const tarjetas = [{ | |
| cardName: "Visa", | |
| installments: [1, 3, 6, 9, 12] | |
| }, | |
| { | |
| cardName: "Mastercard", | |
| installments: [1, 3, 6] |
OlderNewer