What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-10 19:11:09
file_get_contents follow redirect
$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HEADER, TRUE); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $a = curl_exec($ch); if(preg_match('#Location: (.*)#', $a, $r)... Add solution -
Other 2021-11-10 11:40:28
capacitor meter ardino code for 1pf to 25nf
/*Thanks. Remember to visit my Youtube channel If you don't whant to Serial print the valeus just delete the serial. print lines and leave just the LCD print ones. I've used a i2c LCD screen module. */ //LCD config #include <Wire.h> #include... Add solution -
PHP 2021-11-10 01:04:18
user1263019 how to upload a file using php curl
<?php // Helper function courtesy of https://github.com/guzzle/guzzle/blob/3a0787217e6c0246b457e637ddd33332efea1d2a/src/Guzzle/Http/Message/PostFile.php#L90 function getCurlValue($filename, $contentType, $postname) { // PHP 5.5 introduced a CurlF... Add solution -
Other 2021-11-09 15:44:19
how to unsubscribe from observable created by http
import { Component, OnInit, OnDestroy } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Subject } from 'rxjs'; import { takeUntil } from 'rxjs/operators'; interface User { id: string; name: string; age: number; } ... Add solution -
Other 2021-11-09 04:48:12
show map openstreetmap
<html> <head> <title>layer OSM </title> <script src="http://www.openlayers.org/api/OpenLayers.js"></script> <script type="text/javascript"> // Posizione iniziale della mappa var lat=... Add solution -
Python 2021-11-08 23:56:07
esp32 micropython timer
from machine import Timer tim0 = Timer(0) def my_callback_function(timer): # important (timer) # do something tim0.init(period = 1000, mode = Timer.ONE_SHOT, callback = my_callback_function) # other mode : Timer.PERIODIC tim0.deinit() # stop timer Add solution -
CSS 2021-11-07 15:22:11
should you disable embed scripts in wordpress
function disable_embeds_code_init() { // Remove the REST API endpoint. remove_action( 'rest_api_init', 'wp_oembed_register_route' ); // Turn off oEmbed auto discovery. add_filter( 'embed_oembed_discover', '__return_false' ); // Don't filter oEmbed... Add solution -
CSS 2021-11-06 17:58:10
aos css animation
CSS <link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet"> JS <script src="https://unpkg.com/[email protected]/dist/aos.js"></script> INITIALIZE AOS: <script> AOS.init(); </script> Add solution