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
-- Must connect to SQL Server using the Dedicate Admin Connection, eg "admin:localhost". Verified with SQL Server 2012. | |
-- Originally from Williams Orellana's blog: http://williamsorellana.org/2012/02/decrypt-sql-stored-procedures/ | |
DECLARE @ObjectOwnerOrSchema NVARCHAR(128) | |
DECLARE @ObjectName NVARCHAR(128) | |
SET @ObjectOwnerOrSchema = 'dbo' | |
SET @ObjectName = 'PROCEDURE NAME HERE' | |
DECLARE @i INT |
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
# Source: https://stackoverflow.com/questions/36358265/when-does-git-refresh-the-list-of-remote-branches | |
# To update the local list of remote branches: | |
git remote update origin --prune |
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 | |
// refference : https://www.w3resource.com/php-exercises/php-date-exercise-18.php | |
$bday = new DateTime('2021-05-18'); // Your date of birth | |
$today = new Datetime(date('Y-m-d')); | |
$diff = $today->diff($bday); | |
printf(' Your age : %d years, %d month, %d days', $diff->y, $diff->m, $diff->d); | |
printf("<br>"); | |
printf("<br>"); |