What do you want to save?
Add Code snippet
New code examples
-
C 2021-08-31 06:11:01
how can i show ant text by onclick
<!DOCTYPE html> <html> <body> <h2>Displaying text when clicked</h2> <button type="button" onclick="document.getElementById('demo').innerHTML = 'These are the steps to get your PIN number: Bla bla bla'"... Add solution -
Javascript 2021-08-31 05:14:02
change iframe src by javascript
// so you got an iframe (id="myiframe"). In that page you have an element id="theprice" and you want to change its value // from the parent page do this in your javascript: var iframevar = document.getElementById('myiframe'); var elmnt... Add solution -
Java 2021-08-31 04:38:02
4 digit armstrong number in java
// Check whether a given number is armstrong number or not import java.util.Scanner; public class ArmstrongNumber { public static void main(String[] args) { int x, y, z = 0, temp; Scanner sc = new Scanner(System.in); System.out.pri... Add solution -
Java 2021-08-31 04:17:03
access specifiers in Java
In Java, access specifiers are the keywords which are used to define the access scope of the method, class, or a variable. In Java, there are four access specifiers. * Public: The classes, methods, or variables which are defined as public, can... Add solution -
Shell/Bash 2021-08-31 01:48:01
jdk path ubuntu
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 Add solution -
Shell/Bash 2021-08-31 01:17:01
unstage previous commit
git reset --soft HEAD~1 Should do what you want. After this, you will have the first changes in the index (visible with git diff --cached), and your newest changes not staged. git status will then look like this: # On branch master # Changes to be com... Add solution -
Shell/Bash 2021-08-30 22:53:02
install eclipse in ubuntu 20.04
sudo apt update sudo apt install -y openjdk-11-jdk wget http://mirror.umd.edu/eclipse/technology/epp/downloads/release/2020-06/R/eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz sudo tar -zxvf eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz -C /usr/ sudo ln ... Add solution -
Other 2021-08-30 21:57:02
bootstrap stater
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=... Add solution -
Other 2021-08-30 20:31:01
styles for parent of selector
/* There is no such selector in 2008, the following was suggested */ a < img { 'border': none } /* Which in theory, would set an an images 'a' parent border to none Of course, this does not exist Another suggestion... */ div:parent { 'b... Add solution