What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-02 11:10:11
react hooks delete item from array
import React, { useState } from "react"; import ReactDOM from "react-dom"; import "./styles.css"; const App = () => { const defaultList = [ { name: "ItemOne" }, { name: "ItemTwo" }, { na... Add solution -
Html 2022-02-28 01:15:02
video values in html
<!-- video attributes --> <video src="(link)" poster="(thumbnail's link)" controles autoplay loop muted preload="auto|metadata|none">(video's alt)</video> <!-- you can adjust width and height with css--> Add solution -
Javascript 2022-02-27 23:00:02
js copy to clipboard cross browser
/** copy text to the clipboard */ function copy2clipboard( text, callback /* optional */ ) { // use modern clipboard API if ( navigator.clipboard ) { navigator.clipboard.writeText( text ) .then( function(){ // if a callback is provided, call it ... Add solution -
CSS 2022-02-27 09:10:04
how to stilize title property css
/* use for any tag on your page */ [data-title]:hover:after { opacity: 1; transition: all 0.1s ease 0.5s; visibility: visible; } /* box for title text */ [data-title]:after { content: attr(data-title); /* position for title view box */ ... Add solution -
PHP 2022-02-25 16:40:04
wordpress set two login pages
<?php //if you want to show two (different) login pages for two (different) links, //you can first of all think of two urls for two different login pages. //here, i have two links => /login-old and /login-new for which i want different forms, //n... Add solution -
Shell/Bash 2022-02-25 05:50:02
resize root partition centos 7
Step 1 - Copy /home Contents To backup the contents of /home, do the following: mkdir /temp cp -a /home /temp/ Once that is finished at your back at the prompt, you can proceed to step 2. Step 2 - Unmount the /home directory umount -fl /home Step 3 - N... Add solution -
Other 2022-02-23 15:55:03
export flutter data to csv
import 'dart:html'; import 'package:csv/csv.dart'; class ExportCsv { final List data; ExportCsv({this.data}); List<List<dynamic>> rows = List<List<dynamic>>(); downloadData() { for (int i = 0; i < data.length; i++... Add solution