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
| x10c HelloWholeWorld.x10 |
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
| mpicc my_mpi_application.c -o my_mpi_application |
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
| iptables -A INPUT -p tcp -s localhost --dport 25 -j ACCEPT | |
| iptables -A INPUT -p tcp --dport 25 -j DROP |
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
| # checkout specific version of file | |
| git checkout f08a63ff4fa7b8479f8c698e5998ee1afcac3a4e kitti_to_tfrecords.py |
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
| copy(JSON.stringify(YOUR_JSON_ARRAY_OR_OBJECT)); |
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
| var regExp = new RegExp('\\d+'); | |
| var match = regExp.exec(edges[i].data.name); | |
| var match = edges[i].data.name.match(/\d+/g); |
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
| parseFloat('1.45kg') // 1.45 | |
| parseFloat('77.3') // 77.3 | |
| parseFloat('077.3') // 77.3 | |
| parseFloat('0x77.3') // 0 | |
| parseFloat('.3') // 0.3 | |
| parseFloat('0.1e6') // 100000 | |
| parseInt('123.45') // 123 | |
| parseInt('77') // 77 | |
| parseInt('077',10) // 77 | |
| parseInt('77',8) // 63 (= 7 + 7*8) |
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
| getIndex: (level, levelIndex) -> | |
| return levelIndex + (1 << level) -1 | |
| getParentIndex: (i) -> | |
| return (i - 1) // 2 | |
| getLeftChild: (i) -> | |
| return 2*(i+1) - 1 | |
| getRightChild: (i) -> |
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
| # copy file content to clipboard | |
| xsel --clipboard < new-clipboard-contents.txt | |
| # copy clipboard to file | |
| xsel --clipboard > current-clipboard-contents.txt | |
| # To read a file into the X selection | |
| xsel < file | |
| # make use of the secondary selection | |
| xsel --secondary < file | |
| # swap the primary and secondary selections | |
| xsel --exchange |
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
| public class Name { | |
| private final static String = "Alice"; | |
| private final static String = "Eve"; | |
| private final static String = "Bob"; | |
| } | |
| // somewhere else in the program | |
| Name name = new Name(); | |
| Field[] fields = Name.class.getDeclaredFields(); | |
| List<String> names = new ArrayList<String>(); |
NewerOlder