Skip to content

Instantly share code, notes, and snippets.

View sangeet's full-sized avatar

Sangeet Khatri sangeet

View GitHub Profile
{
"last_node_id": 17,
"last_link_id": 23,
"nodes": [
{
"id": 7,
"type": "CLIPTextEncode",
"pos": [
454,
438
let mapleader=" "
set surround
set commentary
set nerdtree
set showmode
set scrolloff=5
set incsearch
set hlsearch
# client.py
#importing socket module
import socket
# creating socket instance
client_object = socket.socket(family=socket.AF_INET, type=socket.SOCK_STREAM)
# target ip address and port
ip_address = '127.0.0.1'
{
"teams": [
{
"team": "Arsenal",
"city": "London",
"manager": "Mikel Arteta",
"pl_position": 2
},
{
"team": "Manchester United",
# Sajid
# def fancy_text(text):
# len_str = len(text)
# equals_str = ""
# for i in range(len_str):
# equals_str = equals_str + "="
#
# print(equals_str)
# print(text)
# print(equals_str)

SQL Practice Exercise

In this practice exercise, you will work with a database consisting of three tables: Students, Teachers, and Classes. The exercise will help you practice writing SQL queries for CRUD operations.

Table Definitions

Students table

  • student_id (integer, primary key)
  • student_name (varchar/text)
@sangeet
sangeet / overlap.html
Created November 13, 2022 14:05
Overlapping text and image
<style>
.section2 {
background: white;
margin: 100px;
}
.s2_inner {
background: #0481f2;
color: white;
font-size: 80px;
@sangeet
sangeet / inputListener.js
Created October 16, 2022 15:00
Listening to Input changes in Javascript
var button = document.querySelector("#button");
var input = document.querySelector("#name");
var heading = document.querySelector("#heading")
button.addEventListener(
"click",
function () {
heading.innerHTML = input.value;
}
);
#include <stdio.h>
int get_length(char str[]){
int count = 0;
int i;
for(i=0; str[i] != '\0'; i++){
count = count + 1;
}
return count;
}