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
const http = require('http'); | |
const hostname = '127.0.0.1'; | |
const port = 3000; | |
const server = http.createServer((req, res) => { | |
res.statusCode = 200; | |
res.setHeader('Content-Type', 'text/plain'); | |
res.end('Hello World\n'); | |
}); |
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
/* | |
https://www.ostraining.com/blog/coding/custom-jquery-plugin/ | |
my first plugin in Jquery | |
*/ | |
(function ($) { | |
$.fn.hello = function (options) { | |
//Default options | |
var myname = $.extend({ | |
name: 'Gilbert' | |
color: 'green' |
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
// When any <p> tag is clicked, we expect to see '<p> was clicked' in the console. | |
$( "p" ).on( "click", function() { | |
console.log( "<p> was clicked" ); | |
}); |
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
<p>Click this document to activate the handler.</p> | |
<script> | |
window.addEventListener("click", () => { | |
console.log("You knocked?"); | |
}); | |
</script> |
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
<p>Click this document to activate the handler.</p> | |
<script> | |
window.addEventListener("click", () => { | |
console.log("You knocked?"); | |
}); | |
</script> |
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
https://developer.mozilla.org/en-US/docs/Web/Reference/API | |
https://developer.mozilla.org/en-US/docs/Web/Events | |
https://www.reddit.com/r/reactjs/ | |
https://news.ycombinator.com/newest | |
https://ecma-international.org/ecma-262/6.0/ | |
https://echojs.com | |
https://start.jcolemorrison.com/ | |
https://www.reddit.com/r/javascript/ | |
http://babeljs.io/ | |
https://www.w3.org/TR/webaudio/ |
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 onCreated(node) { | |
console.log(node); | |
console.log("done"); | |
} | |
var createBookmark = browser.bookmarks.create({ | |
title: "GOOGLE URL", | |
url: "https://www.google.com/" | |
}); |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<title>Login</title> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="css/style.css"> | |
</head> | |
<body> |
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
true | |
false | |
"mi valor" | |
"mi valor" |
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
/** | |
* ejemplo 1 | |
*/ | |
console.log(x === undefined); // true | |
var x = 3; | |
console.log(x ===undefined); | |
/** | |
* ejemplo 2 | |
*/ |
NewerOlder