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 | |
// Database configuration | |
$dbHost = 'localhost'; // Change this to your database host | |
$dbName = 'your_database_name'; // Change this to your database name | |
$dbUser = 'your_username'; // Change this to your database username | |
$dbPass = 'your_password'; // Change this to your database password | |
// PDO connection | |
try { |
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
name: CI | |
# 1 | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push events but only for the master branch | |
push: | |
branches: [ master ] | |
# Allows you to run this workflow manually from the Actions tab |
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
name: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: |
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
background: -webkit-linear-gradient(300deg, #93f5ec 20%, #a77bf3 70%); | |
-webkit-background-clip: text; | |
background-clip: text; | |
-webkit-text-fill-color: transparent; | |
-webkit-box-decoration-break: clone; |
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
create user 'remote_shiv'@'157.245.102.197' identified by 'Shiv_123'; | |
alter user 'remote_shiv'@'157.245.102.197' identified with mysql_native_password by 'Shiv_123'; | |
create database database_name; | |
flush privileges; |
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
function calculateDiceProbabilities(history) { | |
const counts = [0, 0, 0, 0, 0, 0]; | |
// Count the occurrences of each number in the history | |
for (let i = 0; i < history.length; i++) { | |
const roll = history[i]; | |
if (roll >= 1 && roll <= 6) { | |
counts[roll - 1]++; | |
} | |
} |
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
$(document).on('dblclick', 'tr', function() { | |
const data = $('#report-table').DataTable().row(this).data(); | |
console.log(data); | |
}); |
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
// 'prices.*.duration' => 'string|required_if:prices.*.for,call,video,consultation', |
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
SET FOREIGN_KEY_CHECKS = 0; | |
SET @tables = NULL; | |
SELECT GROUP_CONCAT('`', table_schema, '`.`', table_name, '`') INTO @tables | |
FROM information_schema.tables | |
WHERE table_schema = 'curvicare'; -- specify DB name here. | |
SET @tables = CONCAT('DROP TABLE ', @tables); | |
PREPARE stmt FROM @tables; | |
EXECUTE stmt; | |
DEALLOCATE PREPARE stmt; |
NewerOlder