- Install Xcode (Avaliable on the Mac App Store)
- Install Xcode Command Line Tools (Preferences > Downloads)
- Install depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
sudo nano ~/.bash_profile
- Add
export PATH=/path/to/depot_tools:"$PATH"
(it's important that depot_tools comes first here)
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
1.Hãy nói sự thật | |
2. Đừng làm những thứ mà bạn ghét | |
3. Hãy làm để có kinh nghiệm mà nói ( a.k.a chưa làm đừng chém) | |
5. Theo đuổi những thứ có ý nghĩa, đừng theo đuổi những gì hợp thời | |
6. Nếu được chọn, hãy là người thực sự làm, thay vì làm chỉ để người khác nhìn | |
7. Làm gì thì chú ý vào | |
8. Luôn cho rằng người đối diện biết ít nhất 1 thứ bạn không biết. Hãy lắng nghe đủ lâu và họ sẽ chia sẻ nó cho bạn | |
9. Hãy thực sự bỏ công sức vào việc duy trì mối quan hệ tình cảm | |
10. Không phải ai cũng đáng để bạn chia sẻ tin tốt | |
11. Không phải ai cũng đáng để chia sẻ tin xấu |
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
Q: Dấu hiệu nào cho thấy bạn đang lãng phí đời mình? | |
A: Ẩn danh (Upvote: 18,6k) | |
Bạn đang lãng phí đời mình nếu như: | |
1. Bạn thủ dâm thường xuyên, bạn nghĩ không có chuyện lặp lại đâu nhưng bạn đã lặp lại đúng chứ? Yeah, bạn đang lãng phí cuộc sống và năng lượng của mình đấy. | |
2. Lướt Whatsapp, Facebook, Instagram cứ mỗi 5 phút, kể cả khi chẳng có công việc gì quan trọng để kiểm tra. | |
3. Tốn thời gian để lên kế hoạch hơn là thực sự làm việc theo kế hoạch. | |
4. Thức dậy sau 6 giờ sáng. Đa số người không thành công thức dậy sau 6 giờ sáng. | |
5. Không đọc gì đó trong ngày. | |
6. Không tập thể dục. Không tập thể dục hằng ngày là một dấu hiệu rõ ràng cho việc bạn đang lãng phí đời mình. |
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
/** | |
* Copyright 2012 Akseli Palén. | |
* Created 2012-07-15. | |
* Licensed under the MIT license. | |
* | |
* <license> | |
* Permission is hereby granted, free of charge, to any person obtaining | |
* a copy of this software and associated documentation files | |
* (the "Software"), to deal in the Software without restriction, | |
* including without limitation the rights to use, copy, modify, merge, |
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 collection = [ | |
{ attributeValue: ["RED", "GOLD"] }, | |
{ attributeValue: ["16G", "32G", "64G"] }, | |
{ attributeValue: ["PLUS"] } | |
] | |
function cartesian(data) { | |
const f = (a,b) => [].concat(...a.map(d => b.map(e => [].concat(d, e)))) | |
const recurse = (a, b, ...c) => (b? recurse(f(a, b), ...c): a) | |
return recurse(...data) |
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
curl -w "@curl-format.txt" -o /dev/null -s http://www.aduanacol.com |
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
f = (x, st = []) => Object.keys(x).reduce((m, n) => { | |
s = [...st, n]; | |
if (typeof x[n] == 'object') { | |
return [...m, ...f(x[n], s)] | |
f(x[n], s); | |
} else return [...m, s.join `.`] | |
}, []) | |
user = { | |
id: 101, |
- https://www.facebook.com/dangnhdev
- https://www.facebook.com/phingocchi
- https://www.facebook.com/haint504
- https://www.facebook.com/NghiaLeMinh
- https://www.facebook.com/dungba88
- https://www.facebook.com/bachden
- https://www.facebook.com/pham.phuong.tu
- https://www.facebook.com/huy
- https://www.facebook.com/thanhtu.pham.12914
- https://www.facebook.com/hung.stanford
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
/* Parse a string function definition and return a function object. Does not use eval. | |
* @param {string} str | |
* @return {function} | |
* | |
* Example: | |
* var f = function (x, y) { return x * y; }; | |
* var g = parseFunction(f.toString()); | |
* g(33, 3); //=> 99 | |
*/ | |
function parseFunction (str) { |
OlderNewer