Skip to content

Instantly share code, notes, and snippets.

@natthasath
natthasath / household-drug.md
Created July 5, 2024 09:27
household-drug.md
Name Drug Description
Analgesics Paracetamol, Ibuprofen Relieve headaches, muscle pain, and menstrual pain
Antipyretics Paracetamol, Ibuprofen Reduce fever
Anti-inflammatory drugs Ibuprofen, Naproxen Reduce inflammation and pain
Antihistamines Loratadine, Cetirizine Reduce allergy symptoms, itching, and runny nose
Cough medicines Dextromethorphan, Guaifenes
@natthasath
natthasath / object-type-graphql.md
Created July 3, 2024 06:44
object-type-graphql.md
ObjectType Description
Query Root type for read operations
Mutation Root type for write operations
Subscription Root type for real-time updates
User Represents a user entity in the system
Post Represents a post or article
Comment Represents a comment on a post or article
Product Represents a product in an e-commerce system
Order Represents an order placed by a user
@natthasath
natthasath / database-support-graphql.md
Created July 3, 2024 03:07
database-support-graphql.md
Database Tool Built-In Add-On Tool
MySQL Prisma, Hasura
PostgreSQL -
MongoDB Apollo Server, GraphQL Yoga
Oracle Database GraphDB, Oracle APEX
Microsoft SQL Server GraphQL.NET, HotChocolate
Redis -
Cassandra Stargate
SQLite Apollo Android
@natthasath
natthasath / infrastructure-as-code.md
Created July 3, 2024 02:46
infrastructure-as-code.md
Feature Puppet Chef SaltStack Ansible Terraform
Language Puppet DSL Ruby DSL Python YAML (Playbooks) HashiCorp Configuration Language (HCL)
Configuration Style Declarative Imperative Both Declarative Declarative
Primary Use Configuration Management Configuration Management Configuration Management Configuration Management Infrastructure Provisioning
@natthasath
natthasath / love-couple-workshop.md
Created July 3, 2024 02:36
love-couple-workshop.md
Activity Description
Icebreaker Games Fun activities to help couples feel comfortable and get to know each other.
Communication Exercises Activities designed to improve verbal and non-verbal communication skills between partners.
Trust Building Activities Exercises such as trust falls or guided blindfolded walks to build trust.
Conflict Resolution Workshops Sessions teaching effective confli
@natthasath
natthasath / medical-imaging-technique.md
Created July 3, 2024 02:31
medical-imaging-technique.md
ลักษณะ X-ray CT Scan MRI Ultrasound
หลักการทำงาน ใช้รังสี X-ray เพื่อสร้างภาพของโครงกระดูกและเนื้อเยื่อภายใน ใช้รังสี X-ray แบบมัลติเซ็นเซอร์ในการสร้างภาพของโครงกระดูกและเนื้อเยื่อภายใน ใช้คลื่นแม่เหล็กและสนามแม่เหล็กในการสร้างภาพของเนื้อเยื่อภายใน ใช้คลื่นเสียงในการสร้างภาพของเนื้อเยื่อภายใน
การใช้งาน ใช้สำหรับการวินิจฉัยบาดเจ็บหรือโรคที่เกี่ยวกับโครงกระดูก ใช้สำหรับการวินิจฉัยโรคที่เกี่ยวข้องกับสมอง ทรวงอก หรือส่วนอื่นของร่างกาย ใช้สำหรับการตรวจวินิจฉัยโรคที่เกี่ยวข้องกับเนื้อเยื่อภายในและระบบประสาท ใช้สำหรับการตรวจวินิจฉัยครรภ์ หรือโรคที่เกี่ยวกับอวัยวะในท้อง
ความละเอียดของภาพ มีความละเอียดในการแสดงโครงสร้างของกระดูกและเนื้อเยื่อภายใน มีความละเอ
@natthasath
natthasath / cache-vs-cdn.md
Created June 26, 2024 03:23
cache-vs-cdn.md
Feature Cache CDN (Content Delivery Network)
Primary Purpose Temporarily store frequently accessed data to speed up access Distribute content to end-users from locations closer to them
Location Can be local (browser, device) or server-side Geographically distributed servers (PoPs)
Data Stored Static assets, frequently accessed data, computed results Static assets (images, videos, scripts), sometimes dynamic content
Performance Improvement Reduces latency by keeping data close to the application/user Reduces latency by delivering content from the nearest server
Use Cases Web browsers, applications, databases Websites, streaming services, large-scale applications
Durati
@natthasath
natthasath / ai-algorithm.md
Created June 25, 2024 02:25
ai-algorithm.md
Algorithm Type Algorithm Description
Supervised Learning Linear Regression Models the relationship between a dependent variable and one or more independent variables.
Logistic Regression Used for binary classification problems, predicting probabilities of categorical outcomes.
Decision Trees Tree-like model of decisions and their possible consequences, including outcomes and costs.
Random Forest Ensemble method using multiple decision trees to improve accuracy and control over-fitting.
Support Vec
@natthasath
natthasath / concurrency-vs-parallelism.md
Created June 24, 2024 02:55
concurrency-vs-parallelism.md
Feature Concurrency Parallelism
Definition Managing multiple tasks at the same time. Executing multiple tasks at the same time.
Focus Structure of the program, dealing with multiple tasks. Execution of tasks simultaneously on multiple cores.
Task Handling Tasks start, run, and complete in overlapping time periods. Tasks run at exactly the same time.
Context Switching Frequent context switching between tasks. Little to no context switching needed.
Resource Utilization Better resource utilization via multitasking. High CPU utilization by running tasks on multiple cores.
Example
@natthasath
natthasath / pomodoro-programmer.md
Last active June 21, 2024 09:55
pomodoro-programmer.md
Time Task Duration Pomodoros Notes
9:00 - 9:25 Planning and prioritizing tasks 25 min 1 Identify tasks for the day
9:25 - 9:30 Break 5 min - Quick break
9:30 - 10:25 Coding feature A 55 min 2 Focus on implementation
10:25 - 10:30 Break 5 min - Quick break
10:30 - 11:25 Coding feature A (continued) 55 min 2 Refactoring and testing
11:25 - 11:30 Break 5 min - Quick break
11:30 - 12:00 Code re