What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-10-12 05:33:03
share wordpress post on whatsapp without plugin
<?php $url = urlencode(get_the_permalink()); $title = htmlspecialchars(urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8'); ?> <div class='social-share'> <a class='fb' target="_blank" h... Add solution -
Javascript 2021-10-12 01:38:08
crop image javascript
Here is a function to get the image as you are uploading using the choose file button function readURL() { const myimg = document.getElementById("myimg"); const input = document.getElementById("myfile"); if(input.files &am... Add solution -
Other 2021-10-08 05:19:02
Search wikipedia
// JavaScript Document let resultsList = document.getElementById('resultsList'); let searchForm = document.getElementById('searchForm'); let searchInput = document.getElementById('searchInput'); searchForm.addEventListener('submit', (e)=> { e.preven... Add solution -
Other 2021-10-07 09:30:03
http 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 -
Python 2021-10-06 11:39:04
how to redirect where requests library downloads file python
import requests file_url = 'https://www.journaldev.com/wp-content/uploads/2019/08/Python-Tutorial.png' file_object = requests.get(file_url) with open('Python-Tutorial.png', 'wb') as local_file: local_file.write... Add solution -
Javascript 2021-10-05 16:05:05
show image with blob javascript
function convertImgToBase64URL(url, callback, outputFormat){ var img = new Image(); img.crossOrigin = 'Anonymous'; img.onload = function(){ var canvas = document.createElement('CANVAS'), ctx = canvas.getContext('2d'), dataURL; ... Add solution