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
// By MohammadHossein Bagheri KheirAbadi (@PyBagheri) | |
// Initialize `board` variable with desired values and run. | |
#include <stdio.h> | |
#include <iostream> | |
#include <vector> | |
#include <chrono> | |
#include <thread> | |
using namespace std; |
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
# Author: Mohammadhossein Bagheri (@PyBagheri) | |
# License: MIT | |
import math | |
class Dijkstra: | |
def __init__(self, graph, start_vertex): | |
self.graph = graph; | |
self.start_vertex = start_vertex | |
self.vertices = list(graph.keys()) |
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 telegram.ext import Updater, MessageHandler, Filters | |
import sqlite3 | |
import random | |
import difflib | |
u = Updater('you token here...') | |
d = u.dispatcher | |
connection = sqlite3.connect('myDatabase.db', check_same_thread=False) | |
connection.execute('CREATE TABLE IF NOT EXISTS myTbl(ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, QUES TEXT NOT NULL, ANSW TEXT NOT NULL)') |
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 telegram.ext import Updater, MessageHandler, Filters | |
import sqlite3 | |
import random | |
import difflib | |
u = Updater('Your token here...') | |
d = u.dispatcher | |
connection = sqlite3.connect('myDatabase.db', check_same_thread=False) | |
connection.execute('CREATE TABLE IF NOT EXISTS myTbl(ID INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, QUES TEXT NOT NULL, ANSW TEXT NOT NULL)') |