What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-02 23:05:09
how to disable security in jhipster
To disable Authentication : - replace .antMatchers("/api/**").authenticated() with .antMatchers("/**").permitAll() in SecurityConfiguration.java - Remove from all *.html, all directives of *jhiHasAnyAuthority in all *.html files - Rem... 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-03-01 10:05:01
css how to remember psudoelements vs pesudo classes
/* Pseudo classes: • Selects actual elements (e.g. p or div) • Based on some condition that is probably not part of the HTML DOM • e.g if the user is hovering over it (:hover) • But sometimes it is stuff that woul... Add solution -
Javascript 2022-03-01 07:55:16
appendchild element once if element present in js
//insert new Element after some reference Element function insertAfter(newElement, referenceElement) { referenceElement.parentNode.insertBefore(newElement, referenceElement.nextSibling); } //example usage var newElement = document.createElement("... Add solution -
Html 2022-03-01 05:45:04
HTML DOM insertAdjacentText() Method
<!DOCTYPE html> <html> <body> <h1>HTML DOM insertAdjacentText() Method</h1> <p>This method inserts a specified text, into a specified position.</p> <h2 id="myH2">My Header</h2> <p>C... Add solution -
Python 2022-02-28 13:00:02
read a csv file in pandas
import panda as pd file_csv = pd.read_csv("file path") ## as csv format file_excel = pd.read_excel("file path") ## as excel format file_json = pd.read_json("file path") ## as json format file_html = pd.read_html("file... Add solution -
PHP 2022-02-27 23:35:02
load player avatar url
$html = file_get_contents("http://steamcommunity.com/profiles/76561197991341238"); preg_match('/<div class="avatarFull"><img src="(.*)" \/><\/div>/i', $html, $profile_picture); // $profile_picture[1]; is the... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5