Skip to content

Instantly share code, notes, and snippets.

View sarveshseri's full-sized avatar

Sarvesh Kumar Singh sarveshseri

View GitHub Profile
@sarveshseri
sarveshseri / neptune-remote.yml
Last active September 19, 2019 22:36
neptune things
hosts: [your-neptune-endpoint]
port: 8182
connectionPool: { enableSsl: true, trustCertChainFile: "SFSRootCAG2.pem"}
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config: { serializeResultToString: true }}
@sarveshseri
sarveshseri / AutoTupling.scala
Last active September 20, 2019 17:55
Mysteries of Scala
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
@sarveshseri
sarveshseri / 1_python_related.md
Last active December 20, 2020 22:19
Python Related
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,