This Week I've Learnt
- No exista nada con Docker + Firefox Headless para hacer e2e test en CI. Pero ahora si, groso marcos!
- Manejar multiples versiones mayor de una misma dependencia en GO
- En la lib de Go de Graphql float es float32, no float64.
<div> | |
<style>.made-with-love{font-size: 12px;}.heart{font-style: normal;font-weight: 500;color: #C0392B;}.support-me {background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%); background-color:#ffec64;border-radius:4px;border:1px solid #ffaa22;display:inline-block;cursor:pointer;color:#333333 !important;font-family:Arial;font-size:12px;line-height:1em;font-weight:bold;padding:6px 10px;text-decoration:none;text-shadow:0px 1px 0px #ffee66;}.support-me:hover {text-decoration:none;}.support-me:active {opacity: .8;}</style> | |
<p class="made-with-love">Made with <i class="heart" aria-label="love">❤</i> by <a href="https://pazguille.me/">Guille Paz</a> 💸 <a class="support-me" href="https://www.paypal.com/paypalme/pazguille">Support Me!</a></p> | |
</div> |
This Week I've Learnt
// At the end of the foo.js library we should have something like this: | |
const foo = document.querySelector('#foo'); | |
if (foo !== null) { | |
const script = document.createElement('script'); | |
script.innerHTML = foo.innerHTML; | |
foo.innerHTML = ''; | |
document.body.appendChild(script); | |
} |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
function test(printTwo) { | |
printing: { | |
console.log("One"); | |
if (!printTwo) break printing; | |
console.log("Two"); | |
} | |
console.log("Three"); | |
} |
<!doctype html> | |
<html lang="es"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mango</title> | |
</head> | |
<body> | |
<form id="form" action="/your-server" method="POST"> |
function offline() { | |
document.body.innerHTML = 'You are offline :('; | |
} | |
function online() { | |
document.body.innerHTML = 'You are online :)'; | |
} | |
window.addEventListener('load', function(e) { | |
if (navigator.onLine) { |
A NodeList is a reference to a collection of objects, and if that collection changes (for example, elements are added or removed) the NodeList will automatically update to reflect that change; conversely our array is a static snapshot of the collection at one point in time, and so won’t update in response to changes in the DOM. Depending on your application, that could be significant.
Source: Sitepoint
<link rel="shortcut icon" href="favicon.ico"> |