// Built-in types
$variable = null; // null type
// Scalar types
$boolVar = true; // bool type
$intVar = 42; // int type
$floatVar = 3.14; // float type
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Screen recorder</title> | |
</head> | |
<body> | |
<button id="recording-toggle">Start recording</button> | |
<script defer> |
This file contains hidden or 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
<div class="pagination size1of1 unit"> | |
<?php if($paged == 1): ?> | |
<span class="current"><?php echo $paged ?></span> | |
<?php else: ?> | |
<a class="prev" href="?page=<?php echo ($current_page - 1) ?>">Prev</a> | |
<?php if ($current_page > 2): ?> | |
<a href="?page=1">1</a> | |
<?php endif ?> | |
<?php if ($current_page > 3): ?> | |
<span class="dots">...</span> |
Starting a personal node project could be easy; starting a team node project could be challenging.
I am a developer currently working in SEEK Australia.
In my experience, common mistakes developer make when starting a projects are:
- No Linting
This file contains hidden or 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
Option Explicit | |
Dim objshell,path,DigitalID, Result | |
Set objshell = CreateObject("WScript.Shell") | |
'Set registry key path | |
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
'Registry key value | |
DigitalID = objshell.RegRead(Path & "DigitalProductId") | |
Dim ProductName,ProductID,ProductKey,ProductData | |
'Get ProductName, ProductID, ProductKey |
This file contains hidden or 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
# To export the Visual Studio Code extension list, run | |
code --list-extensions | xargs -L 1 echo code --install-extension | |
# To install, just open or copy and paste to run on terminal | |
code --install-extension adpyke.vscode-sql-formatter && | |
code --install-extension anseki.vscode-color && | |
code --install-extension BeardedBear.beardedicons && | |
code --install-extension BeardedBear.beardedtheme && | |
code --install-extension bradlc.vscode-tailwindcss && | |
code --install-extension bungcip.better-toml && |
This snippet is about cross-platform AES-GCM-256 encryption & decryption, Where payload is being encrypted using JAVA and decrypted using NODE
sample config :
{
"masterKey": "sfcpnnjFG6dULJfo1BEGqczpfN0SmwZ6bgKO5FcDRfI=",
"iterations": 2333,
"keyLength": 32,
"digest": "sha512"
NewerOlder