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
xpath find grandparent node contains class name | |
elem_parent_btn_download = driver.find_element_by_xpath("(//span[contains(.,'Tải về danh sách')])[4]/ancestor::div[contains(@class,'download-button-dropdown')]") | |
xpath find chidld node: | |
child_element = element.find_element_by_xpath('./') | |
child_element = element.find_element_by_xpath('.//') | |
https://stackoverflow.com/questions/66166788/get-child-element-using-xpath-selenium-python | |
https://stackoverflow.com/questions/20216541/selenium-find-childs-child-elements | |
https://stackoverflow.com/questions/68385050/selenium-python-xpath-find-element-that-has-a-child-grandchild | |
https://stackoverflow.com/questions/43478965/find-out-all-child-elements-xpath-from-parent-xpath-using-selenium-webdriver-in |
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
https://stackoverflow.com/questions/70807705/how-to-use-redis-username-with-password-in-docker-compose | |
https://stackoverflow.com/questions/46569432/does-redis-use-a-username-for-authentication | |
http://antirez.com/news/96 |
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
([\w.-]+)@(\[(\d{1,3}\.){3}|(?!hotmail|gmail|googlemail|yahoo|gmx|ymail|outlook|bluewin|protonmail|t\-online|web\.|online\.|aol\.|live\.)(([a-zA-Z\d-]+\.)+))([a-zA-Z]{2,4}|\d{1,3})(\]?) |
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 React, { useRef, useState, useEffect } from "react"; | |
import asset from "plugins/assets/asset"; | |
import CONFIG from "web.config"; | |
const FormData = require("form-data"); | |
const Editor = (props) => { | |
const editorRef = useRef(); | |
const [editorLoaded, setEditorLoaded] = useState(false); | |
const { CKEditor } = editorRef.current || {}; |
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
git remote prune origin |
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
use basic config: | |
from apscheduler.schedulers.background import BackgroundScheduler | |
from apscheduler.executors.pool import ThreadPoolExecutor, ProcessPoolExecutor | |
executors = { | |
'default': ThreadPoolExecutor(20), | |
'processpool': ProcessPoolExecutor(5) | |
} | |
job_defaults = { | |
'coalesce': False, |
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
https://www.baeldung.com/linux/docker-fix-no-space-error |
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
func BoDau(province string) string { | |
var Regexp_A = `à|á|ạ|ã|ả|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ` | |
var Regexp_E = `è|ẻ|ẽ|é|ẹ|ê|ề|ể|ễ|ế|ệ` | |
var Regexp_I = `ì|ỉ|ĩ|í|ị` | |
var Regexp_U = `ù|ủ|ũ|ú|ụ|ư|ừ|ử|ữ|ứ|ự` | |
var Regexp_Y = `ỳ|ỷ|ỹ|ý|ỵ` | |
var Regexp_O = `ò|ỏ|õ|ó|ọ|ô|ồ|ổ|ỗ|ố|ộ|ơ|ờ|ở|ỡ|ớ|ợ` | |
var Regexp_D = `Đ|đ` | |
reg_a := regexp.MustCompile(Regexp_A) | |
reg_e := regexp.MustCompile(Regexp_E) |
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
db.getCollection("fb_report_detail").aggregate([ | |
{"$match":{ | |
"campaign_id":{"$in":["23852528555800329"]}, | |
"adset_id":{"$in":["23852528555870329","23852661751140329"]}}}, | |
{ '$group': { | |
'_id': '$ad_id', | |
'inline_link_clicks': { | |
'$sum': { | |
'$cond': [ | |
{ '$eq': ['$inline_link_clicks', NaN]}, |
NewerOlder