Skip to content

Instantly share code, notes, and snippets.

View gilbertoquinteroA's full-sized avatar

simon gilbertoquinteroA

View GitHub Profile
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');
});
/*
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'
// 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" );
});
<p>Click this document to activate the handler.</p>
<script>
 window.addEventListener("click", () => {
 console.log("You knocked?");
 });
</script>
<p>Click this document to activate the handler.</p>
<script>
 window.addEventListener("click", () => {
 console.log("You knocked?");
 });
</script>
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/
function onCreated(node) {
console.log(node);
console.log("done");
}
var createBookmark = browser.bookmarks.create({
title: "GOOGLE URL",
url: "https://www.google.com/"
});
<!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>
true
false
"mi valor"
"mi valor"
/**
* ejemplo 1
*/
console.log(x === undefined); // true
var x = 3;
console.log(x ===undefined);
/**
* ejemplo 2
*/