An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| ### This script wraps all executables in the anaconda bin folder so that they can be used without adding Anaconda | |
| ### to the path which would break some functionality of ROS (Robot Operating System) | |
| ### | |
| ### The commands e.g. jupyter notebook will cause the script to add anaconda to the path, start jupyter notebook | |
| ### and after jupyter notebook terminated remove anaconda from the path again | |
| ### | |
| ### Notable commands: | |
| ### * release-the-snake Adds conda to the path and removes all aliases defined by this script | |
| ### Conda will stay in the PATH until the end of the session (terminal is closed) or | |
| ### until "cage-the-snake" is called |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| curl --header 'Authorization: token INSERTACCESSTOKENHERE' \ | |
| --header 'Accept: application/vnd.github.v3.raw' \ | |
| --remote-name \ | |
| --location https://api.github.com/repos/owner/repo/contents/path | |
| # Example... | |
| TOKEN="INSERTACCESSTOKENHERE" | |
| OWNER="BBC-News" | |
| REPO="responsive-news" |
| #include <iostream> | |
| #define str(x) #x | |
| enum State { | |
| One, | |
| Two | |
| }; | |
| int main() { | |
| std::cout << str(One) << std::endl; |