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 | |
function wp() | |
{ | |
return "https://example_domain.com";// wp website ကိုသုံးနိုင်ပါတယ် | |
} | |
$get = new Wp(wp()); | |
if (isset($_GET['category'])) { | |
$result = $get->byCategory( | |
$_GET['category'], | |
array( |
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 | |
function wp() | |
{ | |
return "https://wordpresssite.com";//ကြိုက်တဲ့ wp website ကိုသုံးနိုင်ပါတယ် | |
} | |
$get = new Wp(wp()); | |
if (isset($_GET['category'])) { | |
$result = $get->byCategory( | |
$_GET['category'], | |
array( |
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
<div id="simple"></div> | |
<script> | |
var userList = [ | |
{ | |
id: 6, | |
profile_image_url: "https://avatars.githubusercontent.com/u/35089574?v=4", | |
name: "Hein Soe", | |
age: 28, | |
rs: true, | |
create_time: "2023-08-14T06:18:52.000Z" |
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
export const camelize = sentence => { | |
return sentence.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function( | |
camelCaseMatch, | |
i | |
) { | |
if (+camelCaseMatch === 0) return ""; | |
return i === 0 | |
? camelCaseMatch.toLowerCase() | |
: camelCaseMatch.toUpperCase(); | |
}); |
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 removeDuplicates(arr) { | |
return arr.filter((item, | |
index) => arr.indexOf(item) === index); | |
} |
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
const fs = require('fs'); | |
// Read the SQL file | |
const sql = fs.readFileSync('structure.sql', 'utf8'); | |
// Helper function to map SQL types to TypeScript types | |
const mapSQLTypeToTSType = (sqlType) => { | |
if (/tinyint\(1\)/i.test(sqlType)) return 'boolean'; // Map tinyint(1) to boolean | |
if (/int|decimal|float|double/i.test(sqlType)) return 'number'; | |
if (/varchar|text/i.test(sqlType)) return 'string'; |