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 -
Java 2022-03-16 18:55:26
auto_increment homecontroller
<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ taglib uri="htt... Add solution -
Html 2022-03-13 08:00:27
python send email with html template
# import the necessary components first import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart port = 2525 smtp_server = "smtp.mailtrap.io" login = "1a2b3c4d5e6f7g" # paste your login generat... Add solution -
PHP 2022-03-02 10:05:02
basic code for file upload in php
//This is the minimal code for an image upload for first time learners //html portion <!DOCTYPE html> <html> <head> <title>ImageUpload</title> </head> <body> <form action="upload.php" method="p... 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 -
Other 2022-02-18 06:00:07
resource in rest
REST architecture treats any content as a resource, which can be either text files, HTML pages, images, videos or dynamic business information. REST Server gives access to resources and modifies them, where each resource is identified by URIs/ global IDs. Add solution -
Javascript 2022-02-11 19:55:04
javascript Ecrire une fonction afficherTable2() qui affiche la table de multiplication de 2 dans le contenu d’un élément p.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <head> <title> table de multiplication</title> <script type="text/javascript"> function calc... Add solution -
C++ 2022-02-02 14:25:08
phoenix nested forms
mix phx.new nested_forms; cd nested_forms; mix phx.gen.html Users User users name:string; mix phx.gen.html Posts Post posts body:string; # Add resources "/users", UserController to router # Add belongs_to :user, NestedForms.Forms.User to post.e... Add solution -
CSS 2022-02-01 04:55:30
how to use scss in html
/* Answer to: "how to use scss in html" */ /* Unfortunately, you can't directly insert an SCSS (Sassy CSS) file into your HTML. That's because SASS is a superset (or so-called preprocessor or extension) of CSS3's syntax, which is NOT su... Add solution -
CSS 2022-01-31 11:21:05
CSS add bullets in html manual
/* Manually Add Bullets to Elements in HTML Page*/ ul{ position: relative; } ul li{ list-style: none; } ul li::after{ content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background-color: #f00; top: ... Add solution