- Create root directory for project:
mkdir magento2.test
- Cd to created directory:
cd magento2.test
Drop in replace functions for setTimeout() & setInterval() that | |
make use of requestAnimationFrame() for performance where available | |
http://www.joelambert.co.uk | |
Copyright 2011, Joe Lambert. | |
Free to use under the MIT license. | |
http://www.opensource.org/licenses/mit-license.php |
mkdir magento2.test
cd magento2.test
The existing system used migration mechanism to handle all of the database schema version handling using console command php artisan migrate
. By default this migration mechanism allow version for single database. Which is not appropriate when you are dealing with multi-tenancy with separate database application, you might need to handle migration for all available tenants/customers available in your system, and you might also need a master database with separate migration and schema. Thats why, we need to modify default migration mechanism by overriding the migration console commands.
Laravel ship by default with couple of available useful commands which might help to utilize such mechanism, Following of the option can use for such problem:
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |
#Add active class to menu in codeigniter
In codeigniter, it’s very easy to add active class to the current menu in menu item.
Follow the below steps.
Step 1:- Create a file called "menu_helper.php" inside "application/helpers/menu_helper.php" and paste the below code.
class DecisionTree(): | |
""" Form a basic decision tree """ | |
def __init__(self, x, y, idxs=None, oob_idxs=None, | |
min_leaf=5, feat_proportion=1.0): | |
if idxs is None: | |
idxs = np.arange(len(y)) | |
self.x = x | |
self.y = y | |
self.idxs = idxs | |
self.oob_idxs = oob_idxs |
#!/bin/bash | |
cd /tmp | |
apt-get update | |
apt install -y libtool pkg-config build-essential autoconf automake uuid-dev git wget | |
git clone git://github.com/jedisct1/libsodium.git | |
cd libsodium/ | |
./autogen.sh | |
./configure && make check | |
make install | |
ldconfig |
The kernel lets you run code in a particular programming language using one of the Jupyter tools, such as the Notebook, Jupyterlab or nteract. Installing additional kernels will let you run code in more languages using your existing jupyter installation.
Technically, the kernel is an application which speaks the Jupyter Messaging Protocol, to receive code input from the frontend and respond with the results.
In the Notebook or JupyterLab, the list of available kernels will be shown when trying to create a new notebook.
license: mit |