Skip to content

Instantly share code, notes, and snippets.

View vivek-vijayan's full-sized avatar
✔️
Focusing on developing new model for ML

Vivek Vijayan vivek-vijayan

✔️
Focusing on developing new model for ML
View GitHub Profile
@vivek-vijayan
vivek-vijayan / python_app.py
Last active October 1, 2023 10:27
Python script for Tkinter App for displaying the date and time of the selected timezone/country in the dropbox
import tkinter as tk
from tkinter import ttk
from datetime import datetime
import pytz
def get_selected_times():
selected_indices = country_listbox.curselection()
if not selected_indices:
return
@vivek-vijayan
vivek-vijayan / StockManagement.html
Created December 18, 2022 12:29
Stock Management - adding new stock
<html>
<style>
body {
font-family: 'Comic Sans MS';
}
h2 {
color: rgb(255,255,255);
text-transform: uppercase;
background-color: rgb(34,34,34);
padding: 20px;
@vivek-vijayan
vivek-vijayan / atmcard.html
Created November 5, 2022 14:31
ATM Card HTML CSS design
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index Page</title>
<!-- External CSS -->
<link rel="stylesheet" href="style.css" />
@vivek-vijayan
vivek-vijayan / MainProgram.java
Created September 24, 2022 12:44
Java program to explain Interface and static
package student;
import java.util.Scanner;
interface AadharCardProcess {
abstract void GetUsername(String user);
abstract void GetPhonenumber(int number);
abstract void CreateAadharnumber(int newAadharnumber);
@vivek-vijayan
vivek-vijayan / metaprogramming.cpp
Created August 30, 2022 17:45
C++ programming for Meta
#include <iostream>
template <int n>
struct factorial
{
enum
{
output = 2 * factorial<n - 1>::output
};
};
@vivek-vijayan
vivek-vijayan / main.go
Last active August 28, 2022 17:44
Go programming for main
package main
import (
"fmt"
"sample/payroll"
)
func main() {
emp := payroll.Employee{Empid: 10} // or emp.SetEmpid(10) as it is a public variable
@vivek-vijayan
vivek-vijayan / payroll.go
Last active August 28, 2022 17:39
Go program for payroll
package payroll
type Employee struct {
Empid int // public variable as the Empid starts with upper case
empname string // private variable as the empname starts with lowercase
salary int // private variable as the empname starts with lowercase
}
func (emp *Employee) AddEmployeeDetails(name string, salary int) {
emp.SetEmpName(name)
@vivek-vijayan
vivek-vijayan / main_with_2_star.py
Created August 27, 2022 08:35
Double star operator
def showNames(x,y,z):
print("\n Printing output : ")
print(x)
print(y)
print(z)
dictnames = {'x':'medium', 'y':'vivek','z':'vijayan'}
showNames(** dictnames)
@vivek-vijayan
vivek-vijayan / main_with_star.py
Created August 27, 2022 08:29
main_with_star operator
def showNames(x,y,z):
print("\n Printing output : ")
print(x)
print(y)
print(z)
listnames = ['medium','vivek','vijayan']
showNames(* listnames).
@vivek-vijayan
vivek-vijayan / main.py
Last active August 27, 2022 08:24
Python to explain star operator
def showNames(x,y,z):
print("\n Printing output : ")
print(x)
print(y)
print(z)
listnames = ['medium','vivek','vijayan']
showNames[listnames[0], listnames[1], listnames[2]]