Skip to content

Instantly share code, notes, and snippets.

Avatar

Tahir Hoxha Alkimisti

View GitHub Profile
View background-image.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>background-image</title>
<style>
body {
View word-break.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>word-break</title>
<style>
p {
View white-space.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>white-space</title>
<style>
#nowrap {
View text-shadow.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>text-shadow</title>
<style>
h1 {
View text-overflow.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>text-overflow</title>
<style>
#clip {
View source.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Picture media</title>
</head>
<body>
View picture.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Picture source media</title>
</head>
<body>
View ScannerExample.java
import java.util.Scanner;
public class ScannerExample {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Shëno emrin:");
String emri = scanner.nextLine();
System.out.println("Ti quhesh " + emri);
}
View Decimal2Octal.java
public class Decimal2Octal {
public static void main(String[] args){
String oct1 = Integer.toOctalString(1);
System.out.println(oct1);
String oct2 = Integer.toOctalString(12);
System.out.println(oct2);
String oct3 = Integer.toOctalString(123);
View Octal2Decimal.java
public class Octal2Decimal {
public static void main(String[] args) {
String octal = "123";
int dec = Integer.parseInt(octal, 8);
System.out.println(dec);
}
}