What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-27 07:35:02
compress string javascript
function en(c){var x='charCodeAt',b,e={},f=c.split(""),d=[],a=f[0],g=256;for(b=1;b<f.length;b++)c=f[b],null!=e[a+c]?a+=c:(d.push(1<a.length?e[a]:a[x](0)),e[a+c]=g,g++,a=c);d.push(1<a.length?e[a]:a[x](0));for(b=0;b<d.length;b++)d[b]=S... Add solution -
Python 2022-03-27 07:10:06
scrapy get inside attribute value
#Given <time datetime="2020-09-01T11:48:24-03:00" itemprop="datePublished">a given text</time> # to get the attribute value datetime: getData = response.css('time::attr(datetime)').get() # output '2020-09-01T11:48:24-03:00' Add solution -
Html 2022-03-24 15:35:03
html show text on hover
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .par{ color: white; border: 1px solid black; width: 400px; } .par:hover { backgrou... Add solution -
Other 2022-03-22 19:25:20
leaflet css
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/> Add solution