Skip to content

Instantly share code, notes, and snippets.

View khalidsheet's full-sized avatar
❤️
Frontend

Khalid M. Sheet khalidsheet

❤️
Frontend
View GitHub Profile
@khalidsheet
khalidsheet / about.json
Last active July 28, 2023 09:58
Api Test
{
"built": "Discover Droplet - where cutting-edge Kotlin meets Jetpack Compose, Retrofit, Firebase, and Shared Preferences. Our app redefines user experiences, seamlessly blending technology and innovation. Dive into a world of fluidity, efficiency, and interconnectedness as we shape the future of mobile applications."
}
@khalidsheet
khalidsheet / SessionManagerService.ts
Created September 1, 2019 21:55
Simple Session Manager Service in angular
import { Injectable } from "@angular/core";
@Injectable({
providedIn: "root"
})
export class SessionManagerService {
constructor() {}
set(key: string, value: any): SessionManagerService {
if (value instanceof Object) {
<!DOCTYPE html>
<html class="h-100" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CodeLabUot</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body class="h-100">
// this file is for jQuery and Ajax Request.
var btn = $('#submit');
btn.click(function(event){
event.preventDefault();
$.ajax({
url: 'https://jsonplaceholder.typicode.com/posts',
method: 'GET',
data: {},
var btn = $('#submit');
var user = "khalid";
var pass = "1998";
var posts = null;
btn.click(function(event){
event.preventDefault();