Skip to content

Instantly share code, notes, and snippets.

View coolsasindu's full-sized avatar
😀
Working from home

Sasindu umesh coolsasindu

😀
Working from home
  • https://bit.ly/3v8PLxm
  • Srilanka LK
  • X @Dappyoutube
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<script src="https://gist.github.com/coolsasindu/8a52e7a57f601b98ecfe0923bcc37b52.js"></script>
</body>
</html>
@coolsasindu
coolsasindu / code.txt
Last active March 5, 2021 13:40
how to embed GitHub Code in Blogger (Blogpost) And Html
Hi three
First To Day Ill go to create how to embed GitHub code in blogger.
1. Go to layout > Add a Gadget > HTML/JavaScript and Click + Button.
2. Title Name is GitHub code Embed
3. Content Box Paste This Code
package mylib_test;
import Tech_inbox.Founder;
public class Mylib_test {
/**
* @author coolsasindu@gmail.com
package Tech_inbox;
/**
*
* @author coolsasindu@gmail.com
* @author https://ezcod.blogspot.com/
* @author https://www.youtube.com/channel/UCIDeTJ1PXVcRbFrmyDKQKkg
*/
public class Founder {
class Hello {
public static void main(String args[]){
System.out.println("Hello World This is ezcod.blogspot.com ");
}
}
class Additive {
public static void main(String args[]){
System.out.println(4 + 2 ); // Output : 6
System.out.println(4 - 2 ); // Output : 2
System.out.println( 4 * 2 ); // Output : 8
System.out.println(4 / 2 ); // Output : 2
System.out.println(3 % 2 ); // Output : 1 3/2 = 1 Output the division remainder
public class Relational {
public static void main(String[] args) {
int a = 25 ;
int b = 25 ;
// <, <=, >, >= ,== , !=
if( a < b ){
class Postfix {
public static void main(String args[]){
int i = 5 ;
System.out.println(i++); // Output is 6 but its incresed after print
System.out.println(i--); // Output is 4 but its Decrement after print
}
class prefix {
public static void main(String args[]){
int i = 5 ;
System.out.println(++i); // Output is 6
System.out.println(--i); // Output is 4
}
class Boolean_and {
public static void main(String args[]){
int a = 5 ;
int b = 4 ;
if( a & b ){
//true
System.out.println("yes");