Category: Programming/ Lập Trình
-
Git command for pulling source code of all git projects in a folder (parent)
Git command for pulling source code of all git projects in a folder (parent) ls | xargs -P10 -I{} git -C {} pull ls: liệt…
- Python code: Compress a folder of image
-
Tìm min/max ma trận, theo hàng, cột C++
Ông bạn học liên thông, nhờ làm hộ @@.
-
Undo a Git Rebase on a local branch
The Git rebase command is very strong in a feature branding workflow. However, it will sometimes make you crazy because of the diverged branch issue.…
-
[SOLVED] Sửa lỗi can’t find gem cocoapods (>= 0.a)… khi chạy pod install
keywords: xcode, cocoapods, ios development, install Cách sửa: Cài lại cocoapods Nếu thấy báo lỗi: Thì chạy lệnh: brew link –overwrite cocoapods Kết quả: nguồn:…
-
Sourcecode: Advanced / professional YWM-Gitflow to develop new features or fix bugs
Step 1. (prepare branch) : check out from develop branch $git checkout develop $git checkout –b fix_issue_a Step 2. (develop the feature, fix the issue)$…
-
Best practices: Smart Contract evaluation
Make sure your application requirements need blockchain features Keep the smartcontract code simple, coherent, and auditable Make smart contract functions auditable by using custom function…
-
The basic points summarized from Blockchain course on coursera (coursera.org)
THEORETICAL POINTS. Basic of Blockchain / Cơ bản về Blockchain The blockchain technology supports methods for / Công nghệ Blockchain hỗ trợ các phương thức…
-
Vuejs Lifecycle & JQuery
JQuery is only available from mounted hook Sample code:
-
XMLHttpRequest with Async Ajax Call
[js] var client = new XMLHttpRequest(); var URL=’/Home/Index’; client.open(‘POST’,URL, true); // parameters for Open (method:string , url:string , async?:boolean , user?:string,password?:string) client.setRequestHeader(“Content-Type”, “application/x-www-form-urlencoded”); client.setRequestHeader(“dataType”, “html”);…