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
export default { | |
data() { | |
return { | |
filteredCourses: [] | |
} | |
}, | |
props: { | |
courses: { | |
type: Array, | |
required: true |
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
// Type JavaScript here and click "Run Code" or press Ctrl + s | |
console.log('Hello, world!'); | |
// Challenge 1 | |
function addTwo(num) { | |
return 2 + num | |
} | |
// To check if you've completed it, uncomment these console.logs! |
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
<div id="your-slider" class="slick-slider"> | |
<div class="slick-slide"> | |
your content | |
</div> | |
<div class="slick-slide"> | |
your content | |
</div> | |
<div class="slick-slide"> | |
your content | |
</div> |
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
shortStory.replace(/[aeiou]/ig, 'i') |
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
async function getfbProfile(token) { | |
try { | |
const user = axios.get('https://graph.facebook.com/me', { | |
params: { | |
access_token: token, | |
fields: 'picture,accounts', | |
}, | |
}); | |
const pages = Promise.all(user.data.accounts.data.map(({ id }) => { |
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
{ | |
"window.zoomLevel": 1, | |
"editor.tabSize": 2, | |
"editor.insertSpaces": true, | |
"terminal.integrated.fontSize": 15, | |
"editor.minimap.enabled": false, | |
"editor.multiCursorModifier": "alt", | |
"editor.snippetSuggestions": "top", | |
"editor.scrollBeyondLastLine": true, | |
"workbench.startupEditor": "newUntitledFile", |
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
maskRut(elementId) { | |
; (function (a) { | |
a.fn.validCampoFranz = function (b) { | |
a(this).on({ | |
keypress: function (a) { | |
var c = a.which, | |
d = a.keyCode, | |
e = String.fromCharCode(c).toLowerCase(), | |
f = b | |
; ((-1 != f.indexOf(e) || |
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="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Validador de RUT HTML5</title> | |
</head> | |
<body> | |
<form> | |
<input type="text" id="rut" name="rut" required oninput="checkRut(this)" placeholder="Ingrese RUT"> | |
<button type="submit">Validar RUT y Enviar Form</button> |
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 dni=''; | |
/*while(!(/^\d{8}[a-zA-Z]$/.test(dni))){ | |
dni = prompt("Introduzca un número de DNI: 8 números y una letra"); | |
}*/ | |
function validateDni(dni) { | |
//Se separan los números de la letra | |
var letraDNI = dni.substring(8, 9).toUpperCase(); | |
var numDNI = parseInt(dni.substring(0, 8)); |
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 cleanVersions = versions.map(v => { | |
var obj = { ...v, model: { ...v.model, carClass: v.model.carClass.map(t => slugify(t)) } } | |
return obj | |
}) |