What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-22 21:56:03
telegram bot python
import re from flask import Flask, request import telegram from telebot.credentials import bot_token, bot_user_name,URL global bot global TOKEN TOKEN = bot_token bot = telegram.Bot(token=TOKEN) app = Flask(__name__) @app.route('/{}'.format(TOKEN), met... Add solution -
Javascript 2021-11-21 06:34:17
javascript websocket example code
/* * Link starts with ws:// or wss:// * ws:// for non ssl * wss:// for ssl */ let ws = new WebSocket('LINK_HERE') ws.addEventListener('open', function (event) { //WebSocket Connected console.log('connected') }) ws.addEventListener('messag... Add solution -
Javascript 2021-11-18 17:12:11
python config file json datatypes
import pandas as pd import json import numpy as np # Create a file (csv) for test purposes data = '''\ 3,10,3.5,abc 3,010,3,bcd''' file = io.StringIO(data) # Create a file (json) for test purposes json_data = '''\ { "header":[ [&quo... Add solution -
-
Javascript 2021-11-03 04:13:11
jquery $.post
var formData = {name:"John", surname:"Doe", age:"31"}; //Array $.ajax({ url : "https://example.com/rest/getData", // Url of backend (can be python, php, etc..) type: "POST", // data type (can be ... Add solution -
Javascript 2021-10-29 22:45:20
.fetch method
//Obj of data to send in future like a dummyDb const data = { username: 'example' }; //POST request with body equal on data in JSON format fetch('https://example.com/profile', { method: 'POST', headers: { 'Content-Type': 'application/json', }, ... Add solution -
Javascript 2021-10-27 17:16:10
post jquery
var formData = {name:"John", surname:"Doe", age:"31"}; //Array $.ajax({ url : "https://example.com/rest/getData", // Url of backend (can be python, php, etc..) type: "POST", // data type (can be ... Add solution