Skip to content

Instantly share code, notes, and snippets.

View silkyland's full-sized avatar
💭
On time

Bundit Nuntates silkyland

💭
On time
View GitHub Profile
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2023 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@silkyland
silkyland / fixnotify.txt
Last active November 28, 2023 16:06
A problem occurred configuring project ':app', Failed to notify project evaluation listener, javax/xml/bind/annotation/XmlSchema
* What went wrong:
A problem occurred configuring project ':app'.
> Failed to notify project evaluation listener.
> javax/xml/bind/annotation/XmlSchema
--
If you got error like above that mean "You are using JDK higher than graddle need eg. You install JDK 9 it should be 8"
How to fix:
1) Remove JDK version 9 by
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9.jdk/
@silkyland
silkyland / strToThaiSlug.js
Last active January 20, 2024 19:15
Convert string to slug in Thai language for SEO Friendly in JavaScript
/**
* Translates a string to a Thai slug format.
* @param {string} inputString - The string to translate.
* @returns {string} The translated string.
*/
function toThaiSlug(inputString) {
// Replace spaces with hyphens
let slug = inputString.replace(/\s+/g, '-');
// Translate some characters to Thai
@silkyland
silkyland / navicat_premium_15_download.md
Last active April 5, 2024 05:36
This gist provides a direct download link for Navicat Premium 15, a popular database management tool used by developers, database administrators, and data analysts. The download link directs the user to a DMG file, which is the disk image format used on macOS. Navicat Premium 15 offers a range of features including data modeling, data synchroniz…

Navicat Premium direct link Direct download link for Navicat Premium 15: https://download3.navicat.com/download/navicat150_premium_en.dmg

Navicat Premium 15 is a popular database management tool used by developers, database administrators, and data analysts. It offers a range of features including data modeling, data synchronization, backup and restore, and a user-friendly interface for managing databases across multiple platforms such as MySQL, PostgreSQL, Oracle, and SQL Server. This DMG file is suitable for macOS users.

@silkyland
silkyland / เตรียมพร้อมสำหรับการพัฒนา Flutter.md
Last active May 7, 2024 09:18
เตรียมพร้อมเครื่องมือสำหรับการพัฒนา Flutter

เครื่องมือสำหรับการพัฒนา Flutter

เตรียมความพร้อม

การติดตั้ง Homebrew บนระบบปฏิบัติการ Mac

เปิด Application Terminal บน Mac แล้วพิมพ์

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

การตั้งค่า Environment

เพื่อเริ่มพัฒนาด้วย Flutter เราจำเป็นต้องตั้งค่า Environment บนเครื่องคอมพิวเตอร์ ซึ่งรวมถึงการติดตั้งเครื่องมือที่จำเป็นและกำหนดค่าระบบ โดยทำตามขั้นตอนเหล่านี้:

การติดตั้ง Flutter SDK

1. การติดตั้ง Flutter SDK บนระบบปฏิบัติการ Windows

ความต้องการของระบบ