Skip to content

Instantly share code, notes, and snippets.

View azizkale's full-sized avatar
🇧🇪
</>

Aziz Kale azizkale

🇧🇪
</>
View GitHub Profile
@azizkale
azizkale / Employee.java
Last active August 20, 2023 14:34
the article - How to implement Hibernate in Spring Boot
package com.kale.hibernatetutorial.model;
import jakarta.persistence.*;
public class Employee {
private Integer id;
private String name;
private String department;
private String gender;
public Integer getId() {
import { ApolloServer } from "apollo-server";
import { Configuration, OpenAIApi } from "openai";
import dotenv from "dotenv";
dotenv.config();
const typeDefs = `
type Query{
ask_AQuestion(question:String):String
}
const express = require("express");
const app = express();
const PORT = process.env.PORT || 5000;
// Middleware
app.set('view engine', 'ejs');
app.get('/', (req, res) => {
res.send("Hello World");
<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">
<meta name="google-signin-scope" content="profile email">
<meta name="google-signin-client_id" content="402247694391-fd0d49bf15hdi7f0g9j23mh808o1s9g0.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<title>Google-Sign-In</title>
<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">
<meta name="google-signin-scope" content="profile email">
<meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">
<script src="https://apis.google.com/js/platform.js" async defer></script>
<title>Google-Sign-In</title>
</head>
<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>Google-Sing-In</title>
</head>
<body>
</body>
const express = require("express");
const app = express();
const PORT = process.env.PORT || 5000;
app.get('/', (req, res) => {
res.send("Hello World");
});
app.listen(PORT, () => {
package com.company;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Queue;
public class Main {
public static void main(String[] args) {
Queue<String> myQueue = new LinkedList<String>();
package com.company;
import java.util.HashSet;
import java.util.Set;
public class Main {
public static void main(String[] args) {
Set<String> mySet = new HashSet<String>();
package com.company;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] args) {
Book book1 = new Book("Crime and Punishment", "Fyodor Dostoevsky",576);
Book book2 = new Book("War and Peace", "Leo Tolstoy",1225);
Book book3 = new Book("White Fang", "Jack London",298);