About general things in Python: from setup to usage
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
| hosts: [your-neptune-endpoint] | |
| port: 8182 | |
| connectionPool: { enableSsl: true, trustCertChainFile: "SFSRootCAG2.pem"} | |
| serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }} |
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
| def iWantATuple(tuple: (String, String)): println(tuple) | |
| // what auto tupling does ? | |
| // it tries to fit the aruments as tuples if possible | |
| // the following will work even when its not a tuple | |
| iWantATuple("a", "b") | |
| // this is infamous for absurd compiler messages whenever a Java method is invloved and you pass wrong |
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
| Jan 1st, 2021 00:00:00 in India's Timezone | |
| Jan 1st, 2021 00:00:00 in IST | |
| Jan 1st, 2021 00:00:00 with UTC offset +05:30 | |
| Dec 31st, 2020 00:18:30 in UTC | |
| Dec 31st, 2020 00:18:30 with UTC offset +00:00 | |
| Jan 1st, 2021 02:00:00 with UTC offset +07:30 | |
| // using ISO8601 representation, |
OlderNewer