Skip to content

Instantly share code, notes, and snippets.

View operateur-mar's full-sized avatar

Rida Dahhane operateur-mar

View GitHub Profile
'use strict'; // eslint-disable-line
const webpack = require('webpack');
const merge = require('webpack-merge');
const CleanPlugin = require('clean-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const StyleLintPlugin = require('stylelint-webpack-plugin');
const CopyGlobsPlugin = require('copy-globs-webpack-plugin');
const FriendlyErrorsWebpackPlugin = require('friendly-errors-webpack-plugin');
/* Creating Creature Class */
class Creature{
public boolean heart;
public int legs;
}
/* Using inheritance to create Human class */
class Human extends Creature{
public boolean logic;
}
<!DOCTYPE HTML >
<html>
<head>
<!-- HEAD Elements -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Page Title</title>
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
<meta name="application-name" content="Application Name">
// Other Console commands
console.group(); // Group all console cmds [ must have ending]
console.trace(); // Track elements the page currently using
console.time(); // Check page load time [Must have ending]
console.timeEnd(); // th ending of console.time()
console.memory; // check memory usage ( a propery not a function)
let exist = false; // just a boolean variable
console.assert(exist, "Not Found ! "); // if boolean var is false show not found
console.assert(!exist, " Found ! "); // else sho found
console.groupEnd(); // the ending of console.group()
// Console Table :
console.table([{User : "Rida", Proffession : "Manager"},
{User : "Charif", Proffession : "Manager"},
{User : "Issam", Proffession : "Manager"},
{ User : "Hicham", Proffession : "Manager"}]);
// www.aqweeb.com
// Other uses of Console
console.warn("WARNING : this is a warning message");
console.info("INFO : this is a simple message");
console.error("ERROR : F***G BUGS !");
// www.aqweeb.com
// Stylize a consode using join(;)
const style1 =[
'font-size : 40px',
'font-family : calibri',
'font-weight : bold',
'color : yellow'
].join(';');
const style2 =[
'font-size : 20px',
'font-family : tahoma',
//Stylize a Console Message :
console.log("%cSTOP : ", "font-size:35px;color:red;font-weight:bold;");
let message = "This is a browser feature intended for developers. If someone told you to copy-paste something here to enable a Facebook feature or someone's account, it is a scam and will give them access to your Facebook account.";
console.log("%c%s","font-size : 20px;letter-spacing : 2;",message);
// www.aqweeb.com
// Type simple message
console.log("Aqua Web Say : %s", 'Thanks :) ');
// Do some calcule
console.log("Aqua Web Say : %s", 5*8);
// Type some Unicode Stuff
console.log("Aqua Web Say : %s", '😂');
// www.aqweeb.com
console.log("Hello from Aqua Web");
// www.aqweeb.com