Skip to content

Instantly share code, notes, and snippets.

// Coded by Promlert Lovichit, promlert@gmail.com, https://www.3bugs.com/
/*
🟢 Block: PASSPORT
🟡 Line: PASSPORT - Rect.fromLTRB(667.0, 262.0, 956.0, 308.0)
🟠 Element: PASSPORT - Rect.fromLTRB(667.0, 262.0, 956.0, 308.0)
🟢 Block: 5
🟡 Line: 5 - Rect.fromLTRB(1178.0, 5.0, 1191.0, 31.0)
🟠 Element: 5 - Rect.fromLTRB(1178.0, 5.0, 1191.0, 31.0)
🟢 Block: Type /T
🟡 Line: Type /T - Rect.fromLTRB(1188.0, 275.0, 1373.0, 321.0)
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'package:url_launcher/url_launcher.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
SystemChrome.setSystemUIOverlayStyle(
{
"getStarted1Subtitle": "ค้นหา: โทร: แชท: สตรีม",
"continueText": "ดำเนินการต่อ",
"fitness": "ฟิตเนส",
"music": "ดนตรี",
"foodies": "นักชิม",
"movies": "ภาพยนตร์",
"walking": "ที่เดิน",
"chef": "พ่อครัว",
"singing": "ร้องเพลง",
import math
count = 0
for a in range(1, 389):
b = 777 - a
if math.gcd(a, b) == 1:
count += 1
print(f"Number of solutions: {count}")
saleOrderHeaders: [
{
shipmentNo: "BL6703-00001",
shipmentDate: "2024-03-21T00:00:00.000Z",
invoiceNo: "BL6703-00001",
invoiceDate: "2024-03-21T00:00:00.000Z",
creditStartDate: "2024-03-21T00:00:00.000Z",
creditDays: 30,
creditEndDate: "2024-04-20T00:00:00.000Z",
dueDate: "2024-04-20T00:00:00.000Z",
@3bugs
3bugs / hint.md
Last active February 11, 2024 19:19

การบ้านครั้งที่ 4 LED Matrix

คำแนะนำในการทำการบ้าน

  1. ให้ทำจากเล็กไปใหญ่ เริ่มต้นให้เขียนเมธอด _buildDot() ที่ทำหน้าที่แสดงจุด 1 จุดโดยใช้ Container ให้ได้ก่อน, ให้เมธอดมีพารามิเตอร์ชนิด int ซึ่งหากส่งค่ามาเป็น 0 จะแสดงจุดมืด (LED Off) แต่หากส่งมาเป็น 1 จะแสดงจุดสว่าง (LED On)

    จุดมืด/สว่าง ก็คือการกำหนดสีให้กับ Container นั่นเอง (นักศึกษาเลือกสีของจุดมืด/สว่างได้ตามต้องการ)

    Widget _buildDot(int value) {
// 0 = จุดมืด (LED off), 1 = จุดสว่าง (LED on)
const dotsData = [
// Digit 0
[
[0, 1, 1, 1, 0],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
[1, 0, 0, 0, 1],
@3bugs
3bugs / test.c
Last active August 20, 2023 12:53
#include <stdio.h>
#include <ctype.h>
int main() {
int num;
char input;
int charFrequency[26] = {0};
scanf("%d", &num);
{
"info": {
"_postman_id": "22f59446-f6a4-49ad-ade7-70d0af4025e9",
"name": "Final Exam 2/2565",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "832975"
},
"item": [
{
"name": "Get Polls",
import 'package:flutter/material.dart';
class PhotoListPage extends StatefulWidget {
const PhotoListPage({Key? key}) : super(key: key);
@override
State<PhotoListPage> createState() => _PhotoListPageState();
}
class User {