Skip to content

Instantly share code, notes, and snippets.

View graphzc's full-sized avatar

Tanaroeg O-Charoen graphzc

  • 14:50 (UTC +07:00)
View GitHub Profile
import pyautogui
import time
msgs = [
"word1", "word2"
]
def send_message(message):
# Click at reply button
const timeCol = Object.freeze({
'8.00 - 8.30': 'B',
'8.30 - 9.00': 'C',
'9.00 - 9.30': 'D',
'9.30 - 10.00': 'E',
'10.00 - 10.30': 'F',
'10.30 - 11.00': 'G',
'11.00 - 11.30': 'H',
'11.30 - 12.00': 'I',
'12.00 - 12.30': 'J',
@graphzc
graphzc / docker-compose.yml
Created April 12, 2024 06:42
Go + MongoDB with air hot reload docker compose example
version: '3.8'
services:
api:
build:
context: .
dockerfile: go-air.Dockerfile
volumes:
- .:/app
working_dir: /app
ports:
@graphzc
graphzc / mapMap.java
Created November 9, 2023 02:58
Max value in map
package org.example;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
int[] list = new int[3];
list[0] = 50;
list[1] = 49;
const express = require('express');
const cors = require('cors');
const app = express();
app.use(cors({
origin: '*',
methods: ['GET', 'POST', 'PUT', 'DELETE'],
}))
app.use(express.json());
@graphzc
graphzc / tower-of-hanoi-linked-list.c
Created August 12, 2023 14:37
Tower of hanoi making by linked list
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int data;
struct node *next;
struct node *prev;
} Node;
typedef struct stack {
@graphzc
graphzc / scores.c
Last active July 23, 2023 15:17
Score cal
#include <stdio.h>
#include <stdlib.h>
typedef struct _studentScore {
float firstSubject;
float secondSubject;
float thirdSubject;
float allSubject;
} StudentScore;
Table users {
id int
email varchar
social_id varchar
lastname varchar
firstname varchar
role enum
created_at datetime
updated_at datetime
deleted_at datetime
@graphzc
graphzc / loid.cc
Created August 7, 2022 08:55
Loid
#include <iostream>
#include <iomanip>
using namespace std;
typedef struct {
int no;
string name;
int level;
} Patient;
#include <stdio.h>
typedef struct {
int id;
float score;
char name[50];
} Review;
float findAvg(Review review[], int size) {
float sum = 0;