Once the Homestead vagrant box is installed successfully, we can add phpMyAdmin and config it to run with Nginx.
- SSH into Homestead vagrant box with
vagrant ssh
and type the following command:
sudo apt-get install phpmyadmin
{ | |
"countries": [ | |
{ | |
"country": "Afghanistan", | |
"states": ["Badakhshan", "Badghis", "Baghlan", "Balkh", "Bamian", "Daykondi", "Farah", "Faryab", "Ghazni", "Ghowr", "Helmand", "Herat", "Jowzjan", "Kabul", "Kandahar", "Kapisa", "Khost", "Konar", "Kondoz", "Laghman", "Lowgar", "Nangarhar", "Nimruz", "Nurestan", "Oruzgan", "Paktia", "Paktika", "Panjshir", "Parvan", "Samangan", "Sar-e Pol", "Takhar", "Vardak", "Zabol"] | |
}, | |
{ | |
"country": "Albania", | |
"states": ["Berat", "Dibres", "Durres", "Elbasan", "Fier", "Gjirokastre", "Korce", "Kukes", "Lezhe", "Shkoder", "Tirane", "Vlore"] | |
}, |
<?xml version="1.0" encoding="UTF-8"?> | |
<templateSet group="WordPress"> | |
<template name="aa" value="add_action( '$hook$', '$callback$' ); $END$" description="add_action" toReformat="false" toShortenFQNames="true"> | |
<variable name="hook" expression="" defaultValue="" alwaysStopAt="true" /> | |
<variable name="callback" expression="" defaultValue="" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="false" /> | |
<option name="HTML" value="false" /> | |
<option name="XSL_TEXT" value="false" /> | |
<option name="XML" value="false" /> |
#include<stdio.h> | |
int main() | |
{ | |
int A, B, X; | |
scanf("%d", &A); | |
scanf("%d", &B); | |
X=A+B; | |
printf("X = %d\n",X); | |
return 0; | |
} |
var o = { | |
a: 1, | |
b: 2, | |
c: 3 | |
}; | |
Object.keys(o).reduce(function(out, key) { | |
out.push({ | |
key: key, | |
value: o[key] |
# Processing 3.5.4 IDE - dark theme | |
# Updated version by @RandomGuy3015 | |
# File location: processing-3.5.4/lib/theme.txt | |
# Make a backup of the original theme.txt | |
# Then replace it with this code | |
# Code colors can be adjusted in the preferences.txt file |
[ | |
{ | |
"city": "New York", | |
"growth_from_2000_to_2013": "4.8%", | |
"latitude": 40.7127837, | |
"longitude": -74.0059413, | |
"population": "8405837", | |
"rank": "1", | |
"state": "New York" | |
}, |
// SPDX-License-Identifier: MPL-2.0 | |
// AES Encryption/Decryption with AES-256-GCM using random Initialization Vector + Salt | |
// ---------------------------------------------------------------------------------------- | |
// the encrypted datablock is base64 encoded for easy data exchange. | |
// if you have the option to store data binary save consider to remove the encoding to reduce storage size | |
// ---------------------------------------------------------------------------------------- | |
// format of encrypted data - used by this example. not an official format | |
// | |
// +--------------------+-----------------------+----------------+----------------+ |
<?php | |
namespace App\Services; | |
/** | |
* Custom validator rules. | |
* Add this at app\Services | |
* | |
* @author Alejandro Mostajo <[email protected]> | |
*/ |
const arr1 = [1,2,3] | |
const arr2 = [4,5,6] | |
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |