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
# Khởi tạo biến | |
score = 0 | |
current_question = 1 | |
# Vòng lặp cho game | |
while current_question <= 3: | |
# Câu hỏi 1 | |
if current_question == 1: | |
answer = input("Câu 1: Python được phát hành vào năm nào? A. 1991, B. 1989, C. 2000, D. 1995: ") | |
if answer.upper() == "A": |
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 GetLeads() { | |
const labelText = "Lead từ Landingpage tải tài liệu"; | |
const labelDoneText = "Lead từ Landingpage tải tài liệu - Đã chuyển sang GG"; | |
const sheet = SpreadsheetApp.getActive().getActiveSheet(); | |
const label = GmailApp.getUserLabelByName(labelText); | |
const labelDone = GmailApp.createLabel(labelDoneText); | |
const dataNotes = sheet.getDataRange().getNotes(); | |
const insertedIDs = dataNotes.map(row => row[0]); | |
const emailProcess = (thread, 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
import threading | |
import time | |
import speech_recognition | |
import pyttsx3 | |
import datetime | |
import webbrowser | |
import requests | |
from datetime import date, datetime | |
import language_tool_python |
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
import { useEffect, useState } from "react"; | |
const ToDo = () => { | |
const [todo, setTodo] = useState([]); | |
const set_complete = (id) => { | |
const updated_todo = todo.map(item => { | |
if (item.id === id) { | |
item.completed = true; |
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 [SUN, MON, TUE, WED, THU, FRI, SAT] = [0, 1, 2, 3, 4, 5, 6]; | |
const DAY_STR = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"]; | |
const HOLIDAY_LIST = [ | |
"2022-04-09", | |
"2022-04-10", | |
"2022-04-11", | |
"2022-04-30", | |
"2022-05-01", | |
"2022-05-02", | |
"2022-05-03", |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<script> | |
let menu = { | |
"success": true, |
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
import os | |
import playsound | |
import speech_recognition | |
import pyttsx3 | |
import time | |
import sys | |
import datetime | |
import webbrowser | |
import requests, json | |
from datetime import date, datetime |
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
import turtle | |
window = turtle.Screen() | |
window.setup(600, 600) | |
window.tracer(False) | |
pen = turtle.Turtle() | |
pen.hideturtle() | |
FIRST_ROW = 0 | |
LAST_ROW = 11 |
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
FIRST_ROW = 0 | |
LAST_ROW = 11 | |
FIRST_COLUMN = 0 | |
LAST_COLUMN = 11 | |
EMPTY_VALUE = 0 | |
SNAKE_VALUE = 1 | |
FOOD_VALUE = 2 | |
game = [ | |
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], |
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
import turtle as tt | |
import time | |
screen = tt.Screen() | |
screen.tracer(0) | |
t = tt.Turtle() | |
t.hideturtle() | |
def draw_rectangle(pen, x, y, width, height): | |
pen.penup() |
NewerOlder