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
| Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts( | |
| "mailto","[email protected]", null)); | |
| emailIntent.putExtra(Intent.EXTRA_SUBJECT, "EXTRA_SUBJECT"); | |
| startActivity(Intent.createChooser(emailIntent, "Send email...")); |
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
| chrome --user-data-dir="C:\Users\guihua\Documents\GitHub\programming_questions_mind_mapping" --disable-web-security |
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
| find directory -type f -print0 | xargs -0 sha256sum |
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
| tar cvfz file.tar.gz folder1 folder2 ... |
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
| git submodule foreach 'scp review:hooks/commit-msg $(git rev-parse --git-dir)/hooks' |
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
| # All commits after 53c2 on jd/master branch will be cherry-picked into the current branch | |
| git rev-list --reverse 53c2..jd/master | git cherry-pick --stdin |
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
| #!/usr/bin/python | |
| import xml.etree.ElementTree as ET | |
| import sys, getopt | |
| def read_from_xml(infile): | |
| tree = ET.parse(infile) | |
| root = tree.getroot() | |
| pairs = [] | |
| for string in root: |
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
| find . -name \*.c -print0 | xargs -0 chmod -x |
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
| for (int x : {-1, -2, -3}) // the rule for auto makes this ranged-for work | |
| std::cout << x << ' '; |
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
| The bitbake -g targetname command creates the pn-buildlist, pn-depends.dot, package-depends.dot, and task-depends.dot files in the current directory. These files show what will be built and the package and task dependencies, which are useful for debugging problems. You can use the bitbake -g -u depexp targetname command to display the results in a more human-readable form. |