Given that the data directory of the server is empty:
The server is initialized.
SSL certificate and key files are generated in the data directory.
The validate_password plugin is installed and enabled.
The superuser account 'root'@'localhost' is created. The password for the superuser is set ...
In Strict Mode, functions declared in a local block are inaccessible outside the block.
"use strict";
{
f(); // 'hi'
function f() {console.log('hi');}
}
f(); // ReferenceError: f is not defined
Scope-wise, function declarations in Strict Mode have the same kind of binding as l...
function a(x = 5) {
"use strict";
}
is invalid JavaScript and will throw a SyntaxError because you cannot use the directive "use strict" in a function with Non-Simple Parameter list like the one above - default assignment x = 5
Non-Simple parameters include -
Default a...
This will add a simple widget which displays just a small message.
add_action('wp_dashboard_setup', 'register_my_dashboard_widgets');
function register_my_dashboard_widgets() {
wp_add_dashboard_widget('myInfo_widget', 'Important Information', 'display_infoWidget');
}
...
In the following we will install Plesk Onyx on Windows Server (2016) using the Plesk Installer GUI.
Preparations
For installing Plesk we need a running Windows Server (2012/2016) installation. The Hardware recommendation is a minimum of 2GB RAM and 30GB free disk space. Have a look at the official...
strComputer = "."
instances = 0
processName = "chrome.exe"
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery("Select * from Win32_Process")
For Each objProcess in colP...
To calculate the sum of terms (of type float, int or big integer) of a number list, it is preferable to use List.sum
In other cases, List.fold is the function that is best suited to calculate such a sum.
Sum of complex numbers
In this example, we declare a list of complex numbers and we calcu...
Bukkit uses an event based system that allows plugin developers to interact with and modify the server and specific actions that occur in the world.
Creating an Event Handler
Event handlers are methods that get called when their event occurs. They are generally public and void as well as named o...
Use the GitHub repository to get the entire code:
https://github.com/firebase/functions-samples/blob/master/quickstarts/email-users
Copy or clone the repository in your computer.
Now go to your Firebase Console
Create a Firebase Project using the Firebase Console.
Enable the Google Provid...
This macro gives the output of a given line as the last argument of the next line function call. For e.g.
(prn (str (+ 2 3)))
is same as
(->> 2
(+ 3)
(str)
(prn))
This macro gives the output of a given line as the first argument of the next line function call. For e.g.
(rename-keys (assoc {:a 1} :b 1) {:b :new-b}))
Can't understand anything, right? Lets try again, with ->
(-> {:a 1}
(assoc :b 1) ;;(assoc map key val)
(rena...
This example will demonstrate how to get started with Firebase in your web apps with JavaScript.
We are going to add a text child in our Firebase Database and display it in realtime on our web app.
Lets get started.
Go to the Firebase Console - https://console.firebase.google.com and create a...
This is an enumeration for const creation. Go compiler starts iota from 0 and increments by one for each following constant. The value is determined at compile time rather than run time. Because of this we can't apply iota to expressions which are evaluated at run time.
Program to use iota in cons...
To use Autofac in your project, all you have to do is install Autofac from NuGet Package Manager. Open the solution that want to use Autofac in, then select Manager NuGet Packages for Solution... by going to:
Tools -> NuGet Package Manager -> Manager NuGet Packages for Solution...
In the N...
You can use any name for the function.
function custom_postype(){
register_post_type('cus_post',array(
'labels'=>array(
'name'=>'khaiyam'// Use any name you want to show in menu for your users
),
'public'=>true,// **Must required
...