What do you want to save?
Add Code snippet
New code examples
-
Python 2022-01-26 13:00:44
How to use open weather weather api for pytho
# importing requests and json import requests, json # base URL BASE_URL = "https://api.openweathermap.org/data/2.5/weather?" # City Name CITY = "Hyderabad" # API key API_KEY = "Your API Key" # upadting the URL URL = BASE_URL ... Add solution -
Other 2022-01-26 03:50:56
request
HTTP request method is made up of four components: Request Method ==> Get, Post, Put, Delete (these are the common ones) Request URL ==> the URL of the resource Request Header ==> Accept-Language, AcceptEncoding, User-Agent, Host Request Body ==&... Add solution -
PHP 2022-01-23 07:36:07
run php on node js server
var http = require("http"), fs = require("fs"), path = require("path"), url = require("url"), runner = require("child_process"); function sendError(errCode, errString, response) { response.writeHead(err... Add solution -
C++ 2021-11-21 00:01:17
C++ Book an appointment 2. Change an appointment 3. Cancel an appointment 4. View appointment by last name 5. View all appointment
using namespace std; #include <iostream> #include <conio.h> #include <fstream> #include <iomanip> #include <string> #include <stdlib.h> const unsigned short numComponents = 10; unsigned short prices[numComponents]; ... Add solution -
Other 2021-11-16 22:40:13
Curl Shell Script To Purge Cache From Stackpath CDN
#!/usr/bin/env bash # Usage: # A simple shell script to purge Stackpath cdn cache using API and curl # command line. Tested on Ubuntu/Debian/RHEL/Fedora Linux and FreeBSD/macOS Unix # Syntax: # /path/to/stackpath.purge.sh https://your-domain/url # -----... Add solution -
Python 2021-11-15 22:32:18
instagram username checker
import requests import random import time import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) f = open("username_text_file.txt", "r") # create a text file with the usernames you want to check data = f.re... Add solution -
Java 2021-11-15 18:31:09
running Seleniam tests
// Sample test in Java to run Automate session. import org.openqa.selenium.By; import org.openqa.selenium.Platform; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.remote.DesiredCapabilities; import ... Add solution