This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$args = ParseArgs(); | |
$src_db = $args["src_db"]; | |
$target_db = $src_db . "_restore"; | |
$backup_folder = $args["backup_folder"]; | |
$backup_folder .= $src_db; | |
$src_db_folder = $args["mysql_data_dir"] . $src_db; | |
$target_db_folder = $args["mysql_data_dir"] . $target_db; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
/** | |
* This class provides functions that generate the table of contents | |
* | |
* @category Library | |
* @author Nadir Latif <nadir@pakjiddat.pk> | |
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** The column counter */ | |
$column_counter = 0; | |
/** The row counter */ | |
$row_counter = 0; | |
/** The total counter */ | |
$total_counter = 0; | |
/** The maximum number of columns to show */ | |
$max_columns = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is the server logic of the word-predictor application. You can run the | |
# application by clicking 'Run App' above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This is the user-interface definition the word-predictor application. You can | |
# run the application by clicking 'Run App' above. | |
# | |
# Find out more about building applications with Shiny here: | |
# | |
# http://shiny.rstudio.com/ | |
# | |
library(shiny) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$dir = '{absolute path to css folder}'; | |
$files_and_dirs = ListAllFiles($dir); | |
$files = GetFiles($files_and_dirs); | |
CompressFiles($files); | |
function CompressFiles($files) { |