This file contains hidden or 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
| // | |
| /* You may copy+paste this file and use it as it is. | |
| * | |
| * If you make changes to your about:config while the program is running, the | |
| * changes will be overwritten by the user.js when the application restarts. | |
| * | |
| * To make lasting changes to preferences, you will have to edit the user.js. | |
| */ | |
| /**************************************************************************** |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Facebook Unseen | |
| // @author noname | |
| // @namespace http://www.example.url/to/your-web-site/ | |
| // @description Put a good description in here | |
| // @license Creative Commons Attribution License | |
| // @version 0.1 | |
| // @include http*://facebook.com/* | |
| // @include http*://*.facebook.com/* | |
| // @include http*://*.messenger.com/* |
This file contains hidden or 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
| // ==UserScript== | |
| // @name Recaptcha Solver (Automatically solves Recaptcha in browser) | |
| // @namespace Recaptcha Solver | |
| // @version 2.1 | |
| // @description Recaptcha Solver in Browser | Automatically solves Recaptcha in browser | |
| // @author engageub | |
| // @match *://*/recaptcha/* | |
| // @connect engageub.pythonanywhere.com | |
| // @connect engageub1.pythonanywhere.com | |
| // @grant GM_xmlhttpRequest |
This file contains hidden or 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
| javascript: (() => { | |
| var mssv = 19127363; | |
| var ten = "Lê Văn Đông"; | |
| var lopChuyenNganh = "19KHMT"; | |
| var groupname = document.getElementsByClassName('group-name')[0].textContent; | |
| if (groupname == "I. THÔNG TIN CHUNG") { | |
| var Omssv = document.getElementsByClassName('text'); | |
| Omssv[0].value = mssv; | |
| Omssv[1].value = ten; | |
| Omssv[2].value = lopChuyenNganh; |
This file contains hidden or 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
| #Uninstall Firefox snap and install Firefox ppa | |
| snap disable firefox | |
| snap remove --purge firefox | |
| sudo apt remove --autoremove firefox | |
| sudo add-apt-repository ppa:mozillateam/ppa | |
| #Update OS | |
| sudo apt-get update && sudo apt-get upgrade -y | |
| sudo apt-get dist-upgrade | |
| #Install google chrome | |
| wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb |
This file contains hidden or 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
| /* | |
| Author: Lê Văn Đông - www.levandong.com | |
| Refer: https://www.labnol.org/code/19979-copy-folders-drive | |
| */ | |
| function main() { | |
| let src = "Folder src"; | |
| let des = "Folder des"; | |
| try { | |
| src = src.match(/(?<=folders\/).*?((?=\?)|$)/g)[0].toString(); |
This file contains hidden or 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
| addEventListener('fetch', event => { | |
| event.respondWith(purgeCache(event.request)) | |
| }) | |
| async function purgeCache(request) { | |
| const url = new URL(request.url) |
This file contains hidden or 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
| void Insert(NODE* &pRoot, int x) { | |
| if (pRoot == nullptr) { | |
| NODE* temp = createNode(x); | |
| pRoot = temp; | |
| return; | |
| } | |
| if (x < pRoot->data) { | |
| Insert(pRoot->pLeft, x); | |
| pRoot->height = findHeightMax(pRoot) + 1; |
This file contains hidden or 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
| //Balance AVL | |
| /*Bool is check succesfull*/ | |
| bool BalanceTree(NODE* &pRoot) { | |
| if (pRoot == nullptr) { | |
| return 0; | |
| } | |
| BalanceTree(pRoot->p_left); | |
| BalanceTree(pRoot->p_right); | |
| if (isBalanceTree(pRoot) == -1) { // lech trai | |
| NODE* p1 = pRoot->p_left; |
This file contains hidden or 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
| /*Check Tree is Balance*/ | |
| int isBalanceTree(NODE* pRoot) { | |
| int left = 0, right = 0; | |
| if (pRoot->pLeft == nullptr && pRoot->pRight != nullptr) left = pRoot->pRight->height;// ton tai 1 node con ben trai | |
| else if (pRoot->pRight == nullptr && pRoot->pLeft != nullptr) right = pRoot->pLeft->height;// ton tai 1 node con ben phai | |
| else if (pRoot->pLeft != nullptr && pRoot->pRight != nullptr) {// 2 node con deu la nullptr | |
| left = pRoot->pLeft->height; | |
| right = pRoot->pRight->height; | |
| } |
NewerOlder