About general things in Python: from setup to usage
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
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, |
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
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 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 }} |
mongodump \
--host mongo_host \
--username username \
--password password\
--authenticationDatabase auth_db_name \
--db db_name \
--out dump_path
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
realm=my maven repo | |
host=my-maven-repo-host.com | |
user=xxxx | |
password=yyyy |
First of all, lets understand few date-time standard definitions.
The standard that we are talking about is formally named ISO 8601:1988
but is popularly also called ISO 8601
ISO 8601 also has support for
- years before 0 AD or after 9999
- Week based dates
- Ordinal dates
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
object Main { | |
def main(args: Array[String]): Unit = { | |
println("---------") | |
println("Hi,") | |
println("I am Sbt and I am simple. :D") | |
println("---------") | |
} | |
} |
NewerOlder