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
{ | |
"basics": { | |
"name": "Khant Si Thu Phyo", | |
"label": "Web Developer ", | |
"picture": "https://example.com/photo.jpg", | |
"email": "khantnyar.dev@gmail.com", | |
"phone": "+95 978 459 129", | |
"website": "https://thomasedison.com", | |
"summary": "I'm a dedicated full-stack developer with over 5 years of experience creating digital solutions that make a difference. I specialize in modern web technologies and love turning complex problems into simple, beautiful designs.\n\nWhen I'm not coding, you can find me exploring new technologies, contributing to open-source projects,or sharing knowledge with the developer community through my blog.", | |
"location": { |
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
<?php | |
function view($path, $data = null) | |
{ | |
$filePath = __DIR__ . "/views/{$path}.php"; | |
if ($data) { | |
extract($data); | |
} |
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
git config --local core.hooksPath .git/hooks && echo '#!/bin/sh | |
./vendor/bin/pint' > .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit |
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 id="app"> | |
<div class="doors"> | |
<div class="door"> | |
<div class="boxes"> | |
<!-- <div class="box">?</div> --> | |
</div> | |
</div> | |
<div class="door"> | |
<div class="boxes"> |
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
.title | |
- const slots = ['⚬', 'S', 'L', 'O', 'T', 'S', '⚬'] | |
- for (let sl = 0; sl < slots.length; sl++) | |
span= slots[sl] | |
.slots | |
.combs | |
- for(let c = 1; c <= 3; c++) | |
.comb= 'COMB ' + c | |
.lines |
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
//1. Destructuring with Parameters | |
buttonElement.addEventListener("click", ({ target }) { | |
// is the same as using e.target 👇 | |
console.log(target); | |
}); | |
//Old Code (using if statement - 4 lines) | |
let username = getUsername(); |
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
#include <stdio.h> | |
int main() | |
{ | |
//Initialize array | |
int arr[] = {1, 2, 3, 4, 2, 7, 8, 8, 3}; | |
//Calculate length of array arr | |
int length = sizeof(arr)/sizeof(arr[0]); | |
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
// pagination | |
echo "<div class='w3-bar w3-center'>"; | |
if ($page > 1) { | |
echo "<a href='?page=1' class='w3-btn'><<</a>"; | |
$prevpage = $page - 1; | |
echo "<a href='?page=$prevpage' class='w3-btn'><</a>"; | |
} | |
$range = 3; | |
for ($i = ($page - $range); $i < ($page + $range) + 1; $i++) { | |
if (($i > 0) && ($i <= $totalpages)) { |