What do you want to save?
Add Code snippet
New code examples
-
Html 2021-09-14 19:10:02
allintitle:uploadbutton html
1<!doctype html> 2<html> 3 <head> 4 <meta charset="utf-8" /> 5 <title>Upload Button Examples</title> 6 <link rel="stylesheet" href="../themes/default/default.css" /> 7 <... Add solution -
C# 2021-09-14 18:54:02
string.QueryString c#
// Adding a second parameter with the same name (round 2). StringValues twoValues = StringValues.Concat(queryString["param2"], "my other value"); parsedQueryString["coronavirus"] = twoValues; // Getting a param valu... Add solution -
Other 2021-09-13 19:34:02
JEW token authentication in Django UTC
def test_api_jwt(self): url = reverse('api-jwt-auth') u = user_model.objects.create_user(username='user', email='[email protected]', password='pass') u.is_active = False u.save() resp = self.client.post(url, {'email':'[email protected]', 'pas... Add solution -
Python 2021-09-13 11:40:02
python check if website is reachable
import requests URL = "https://api.github.com" try: response = requests.head(URL) except Exception as e: print(f"NOT OK: {str(e)}") else: if response.status_code == 200: print("OK") else: pri... Add solution -
Javascript 2021-09-11 18:31:02
node js send javascript
const fs = require("fs"); const hostname = "127.0.0.1"; const port = 3000; // use createReadStream instead to save memory const index = fs.readFileSync("index.html"); const java = fs.readFileSync("javascript.js"); ... Add solution -
Other 2021-09-10 12:00:03
elasticsearch delete all indicesa
curl -XDELETE localhost:9200/shop Add solution