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 heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
heidiDecode('pwd ...') |
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 heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
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
/* | |
https://www.codeproject.com/Articles/231132/Difference-between-And-clause-along-with-on-and-Wh | |
*/ | |
+--------+---------------+ | |
| DeptId | DeptName | | |
+--------+---------------+ | |
| 1 | HR | | |
| 2 | Payroll | |
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
-- static | |
SELECT | |
product_id, | |
SUM(CASE WHEN month = 'January' THEN sales_amount ELSE 0 END) AS January, | |
SUM(CASE WHEN month = 'February' THEN sales_amount ELSE 0 END) AS February, | |
SUM(CASE WHEN month = 'March' THEN sales_amount ELSE 0 END) AS March | |
FROM sales | |
GROUP BY product_id; | |
-- dynamic |
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 TABLE `standing` ( | |
`team` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci', | |
`pts` INT(11) NULL DEFAULT NULL, | |
`season` INT(11) NULL DEFAULT NULL | |
) | |
COLLATE='utf8mb4_general_ci' | |
ENGINE=MyISAM | |
; | |
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
-- 1 | |
SELECT 'Mon' | |
UNION | |
SELECT 'Tue' | |
UNION | |
SELECT 'Web' | |
UNION | |
SELECT 'Thu' | |
UNION |
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
<!-- | |
- https://www.youtube.com/watch?v=sxxUK0l8jKE | |
- https://play.tailwindcss.com/4cuLPqCv05 | |
--> | |
<div class="p-20 flex justify-center items-center gap-12"> | |
<img class="avatar-sm" src="https://res.cloudinary.com/thirus/image/upload/v1705061543/images/avatar.png" alt="" /> | |
<img class="avatar" src="https://res.cloudinary.com/thirus/image/upload/v1705061543/images/avatar.png" alt="" /> | |
<img class="avatar-lg" src="https://res.cloudinary.com/thirus/image/upload/v1705061543/images/avatar.png" alt="" /> | |
<img class="avatar-xl" src="https://res.cloudinary.com/thirus/image/upload/v1705061543/images/avatar.png" alt="" /> |
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
class IconListPresenter extends \App\Presenters\BasePresenter | |
{ | |
/** | |
* @var Context | |
* @inject | |
*/ | |
public $connection; | |
public function actionDefault() |
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 | |
/* | |
https://www.nidup.io/blog/manipulate-google-sheets-in-php-with-api | |
*/ | |
require './vendor/autoload.php'; | |
// configure the Google Client |
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
/* Adjustable grid */ | |
.grid { | |
--column-count: 3; | |
display: grid; | |
grid-template-columns: repeat(var(--column-count), 1fr); | |
} | |
/* modifiers */ | |
.grid-3 { --column-count: 3; } | |
.grid-4 { --column-count: 4; } |
NewerOlder