We all are just like Autorickshaws always looking for customers(opportunities). Its very good to have customer (opportunity) with you. If you don't have it keep on roaming keep on searching you will definately find one. But what about those rickshaws who just stay at rickshaw stops and don't roam around ? They are like one who is at IIT/NIT/IIM and passenger (opportunities) will themselves come up. But if you are not standing at such a rickshaw stand then keep wandering, just never stop. Coz you rickshaws made to be driven ( just like you are made to explore & struggle ). And remember even rickshaw standing at stand sometimes need to roam around in search of passenger. Just like top tier institute students sometimes need to look beyond in campus options to grab a certain opportunity. And remember if one customer(opportunity) comes but refuses to go along never be downhearted a next customer (opportunity) may be willing to travel longer distance will come soon.
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
#include "ESP8266WiFi.h" | |
#include "ESP8266HTTPClient.h" | |
#include "ArduinoJson.h" | |
const int AnalogIn = A0; | |
const int Motor_Pin = D1; | |
const char* ssid = "JioFi3_1E8B14"; | |
const char* password = "9d1u40ntfbb"; | |
const char* host = "mohitkh7.pythonanywhere.com"; |
The integrated gateways let your buyers enter their payment data while they are on your website; the hosted gateways redirect users to the payment processor’s platform. An integrated gateway allows users to input their payment data without leaving your website. For them this is a seamless process. But this type of payment gateway will work well only if your website is secure enough, since all payment details will be stored on your server.
- Setup fee/registration fee (one-time payment);
- monthly fee;
- Transaction fee/payment processing fee/credit card processing fee (charged as a percentage or a fixed fee on every transaction);
- Chargeback fee.
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
# Python code to save a file with timestamp of accuracy upto millisecond | |
from datetime import datetime as dt | |
current_time = dt.now() # current system time e.g. 2018-07-16 16:34:43.050328 | |
current_time_as_str = str(current_time) | |
filename = current_time_as_str + ".txt" | |
file = open(filename, "w+") # Create a empty text file with timestamp name | |
file.close() |
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
import turtle | |
# set up screen | |
window = turtle.Screen() | |
window.bgcolor("#bbb") | |
# Setting up boundry | |
mypen = turtle.Turtle() | |
mypen.penup() | |
mypen.setposition(-260, -260) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script> | |
<style> | |
#scroll-section{ |
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
// Q2. Write a function to get Max value of a number Array? | |
function findMax(arr) { | |
maxValue = arr[0]; | |
arr.forEach(element => { | |
if (element >= maxValue) { | |
maxValue = element; | |
} | |
}); | |
return maxValue; |
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
""" | |
The Game of Dice | |
The "Game of Dice" is a game where two players roll 6 faced dice in a round-robin fashion. | |
Each time a player rolls the dice their points increase by the number (1 to 6) achieved by the | |
roll. The first player to accumulate M points wins the game. | |
created by - Mohit Khandelwal ([email protected]) | |
""" |
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
""" | |
Q1. Given an unsorted array with multiple duplicate elements. Find the most repeated element. Return the bigger number if multiple numbers have the highest frequency. | |
For example: | |
T1: | |
Input: [2, 1, -2, 55, 2, 1, 3, 9, 3, 3] | |
Answer: 3 | |
T2: [1, 1, 2, 2, 2, 2, 1, 1] | |
Answer: 2 | |
""" | |
def most_frequent(arr): |
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
from flask import Flask | |
class Blockchain(): | |
def __init__(self): | |
self.chain = [] | |
self.current_transactions = [] | |
def new_block(self): | |
# Creates a new Block and adds it to the chain | |
pass |
OlderNewer