Getting started with CSS

<!DOCTYPE html><!DOCTYPE html><html><head><style>body {    background-color: yellow;}
h1 {    color: black;    text-align: center;}
p { color:green;    text-align: center;    font-family: verdana;    font-size: 20px;}</style></head><body>
<h1>My First CSS Example</h1><p>This is a my first CSS example.</p>
</body></html>

Posted in CSS, Uncategorized | Leave a comment

Print a String 3 Times

str1=”Welcome”
print(str1*3)

Posted in Python, Uncategorized | Leave a comment

Get Memory Address Python

”’
Created on Jun 14, 2017

@author: asharda
”’
str1=”Welcome”
print(id(str1))

Posted in Python, Uncategorized | Leave a comment

Find the Numerical Type Python

”’
Created on Jun 14, 2017

@author: asharda
”’
x=89.28
print(type(x))

Posted in Python, Uncategorized | Leave a comment

Basic Shopping Cost Calculator

<!DOCTYPE html>
<html>
https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js
<body>

Enter the number of items

Enter the cost of the items

Your total bill is {{items*cost}}

</body>
</html>

Posted in Angular, Uncategorized | Leave a comment

Using Expressions Angular JS

<!DOCTYPE html>
<html>
https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js
<body>

My first expression is {{5*5}}

</body>
</html>

Posted in Angular, Uncategorized | Leave a comment

NasHorn JavaScript JDK8

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

import org.testng.annotations.Test;

/**
* NasHorn JavaScript JDK8
* @author asharda
*
*/
public class TestJJS {

/**
* Example Using NashHorn JS.
* @throws ScriptException
*/
@Test
public void testNashHorn() throws ScriptException
{
ScriptEngineManager sm=new ScriptEngineManager();
ScriptEngine se=sm.getEngineByName(“nashorn”);
String name=”Ashish”;
se.eval(“print(‘” + name +”‘)”);
System.out.println(se.eval(“10*10”));
}
}

Posted in Java, Uncategorized | Leave a comment