Skip to content

Instantly share code, notes, and snippets.

View srivastavashubhamji's full-sized avatar
💭
ready for Java World :)

coderShubhSri srivastavashubhamji

💭
ready for Java World :)
View GitHub Profile
@srivastavashubhamji
srivastavashubhamji / JavaScript-getting-started-with-functions.html
Created December 9, 2020 10:13
JavaScript- Getting Started with Functions
<!-- A fundamental example to demonstrate the uses of JavaScript Functions : ShubhamKLogic.com -->
<!DOCTYPE html>
<html>
<body>
<p>Click the button to display a dialog box that will ask for your favorite number.</p>
<p><textarea id="txt" cols=18 rows=5></textarea></p>
<button onclick="calcTable()">Try it</button> // Function will be invoked 'on button click'
<script>
function calcTable() { // Function Definition...
var favNum = prompt("What's your favorite number?", "7"); // Step 1, 2
@srivastavashubhamji
srivastavashubhamji / html-and-css-example.html
Created November 26, 2020 05:11
Start Web Development- HTML and CSS
<!-- A Quick Example of HTML with CSS : ShubhamKLogic.com -->
<!DOCTYPE html>
<html>
<head> <!-- Head section: Not visible to anyone on webpage -->
<style> /* CSS Internal Styles Started */
.circle {
width: 108px; /* Set the width of Circle */
height: 108px; /* Set the Height of Circle */
background-color: rgb(86, 221, 255); /* Apply background color of Circle and so on... */
position: relative;
<!DOCTYPE html> <!-- Doctype tag to tell the browser it's an html document -->
<html>
<head>
<!-- Head Area: To include other required files (eg: CSS) -->
</head>
<body>
<!-- Body Area: To Display Textual and Multimedia content to Users -->
<h1>HTML- A Pillar of Web Development</h1> <!-- "h1" is a Heading tag -->
<hr/> <!-- Represents a Horizontal Line -->
<h2>What is Computer?(Used 'h2' Tag)</h2> <!-- "h2" is used for smaller size headings -->
@srivastavashubhamji
srivastavashubhamji / SQL-programming-DCL-commands.sql
Last active November 5, 2020 04:16
SQL programming DCL commands
// Note*** : The code below is just for Learning purposes - ShubhamKLogic.com
// DCL : Data Control Language, used to control user rights and permissions.
// In DCL we have two commands,
// GRANT: Used to provide any user access privileges or other priviliges for the database.
// REVOKE: Used to take back permissions from any user or object.
Examples:
@srivastavashubhamji
srivastavashubhamji / SQL-programming-DDL-command.sql
Created November 5, 2020 04:04
SQL programming DDL commands
// Note*** : Code snippet below is just for Learning purposes - ShubhamKLogic.com
// DDL Commands : Data Control Language
// Syntax - The basic syntax of this CREATE DATABASE statement is as follows,
CREATE DATABASE YourDatabaseName;
// If you want to create a new database <testShubhamKLogicDB>,
CREATE DATABASE testShubhamKLogicDB;
@srivastavashubhamji
srivastavashubhamji / SQL-programming-DML-commands.sql
Last active November 5, 2020 03:41
SQL programming - DML Commands
// Note***: The code below is just for Learning purpose - ShubhamKLogic.com
// The fundamental syntax of the SELECT statement is as follows−
// Syntax:
SELECT yourColumn1, yourColumn2, yourColumnN FROM yourTableName;
// Example:
SELECT * FROM tbl_SKL_top_members;