Skip to content

Instantly share code, notes, and snippets.

View toransahu's full-sized avatar
💭
I may be slow to respond.

Toran Sahu toransahu

💭
I may be slow to respond.
View GitHub Profile
@toransahu
toransahu / mist_ws_cli.py
Created May 14, 2021 08:39
Mist WebSocket API Client CLI
import json
import os
import time
import websocket # websocket-client>=0.44.0
WS_URL = "wss://api-ws.mist.com/api-ws/v1/stream"
@toransahu
toransahu / saving_marvel.md
Last active February 15, 2021 06:07
test_feb_13_2021

Saving Marvel

In a parallel universe called Marvel, an infectious viral disease has been spreading at a very fast rate. Dr. Strange Is trying to create a potion that would prevent people from catching the disease and would also cure the ones already diseased.

He knows that the cure is a potion which is a mixture of N chemicals and is K liters in volume. He does not know the amount of each chemical that must be added and hence is experimenting on the same.

As the assistant of Dr. Strange, you help him in his task and ask him how to prepare the potion, to which he replies:

  1. Chemicals must be added in the increasing order of their labels.
#!/bin/bash
#
# Trick process(es) to talk to current terminal
#
# Copyright (c) 2004, 2005 Timo Lindfors <timo.lindfors@iki.fi>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
@toransahu
toransahu / cloudSettings
Last active July 16, 2019 11:47
vs-code-settings.json
{"lastUpload":"2019-07-16T11:47:39.087Z","extensionVersion":"v3.4.0"}
@toransahu
toransahu / jupyter_nb_dollar.md
Last active July 5, 2019 08:59
Dollar Sign in Jupyter Notebook
@toransahu
toransahu / keybase.md
Created April 2, 2019 14:33
Keybase Claim

Keybase proof

I hereby claim:

  • I am toransahu on github.
  • I am toransahu (https://keybase.io/toransahu) on keybase.
  • I have a public key ASC_qMMM1xAmrTjJU26VjZkMZgmiLUr0So1GCrCNSaQswgo

To claim this, I am signing this object:

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
#! /bin/bash
#
# post-receive
# Copyright (C) 2018 Toran Sahu <toran.sahu@yahoo.com>
#
# Distributed under terms of the MIT license.
# Ref: https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks
GIT_BARE_REPO="/home/ubuntu/ethereal-machines/ethereal-machines-backend-hook"
@toransahu
toransahu / plot_graph_of_equation.py
Created August 30, 2018 10:21
Plot graph from polynomial equations; Usefull to compare time complexity order
"""
Plot graph from polynomial equations; Usefull to compare time complexity order.
Prerequisites:
pip install numpy pandas matplotlib ipython
Execution:
python -m IPython script.py
"""
@toransahu
toransahu / README-Template.md
Created August 26, 2018 16:04 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites