Skip to content

Instantly share code, notes, and snippets.

View souvikmaji's full-sized avatar
🎯
Focusing

Souvik Maji souvikmaji

🎯
Focusing
  • Fairmatic
  • Kolkata
View GitHub Profile
@souvikmaji
souvikmaji / cloudSettings
Last active May 24, 2021 19:46
Vs code settings
{"lastUpload":"2021-05-24T19:46:43.297Z","extensionVersion":"v3.4.3"}
{
"meta": {
"theme": "stackoverflow"
},
"basics": {
"name": "Souvik Maji",
"label": "Full Stack Developer",
"picture": "https://media-exp2.licdn.com/dms/image/C4E03AQHmTmrUEcPe1w/profile-displayphoto-shrink_800_800/0/1575315407574?e=1663200000&v=beta&t=uwymJ92eTLnVKl6XfdqP8sqvFwSYrgvEzJpAxLFxAMY",
"email": "souvikmaji94@gmail.com",
"phone": "(+91) 9432489362",
@souvikmaji
souvikmaji / .zshrc-linux
Last active November 22, 2024 07:22
ZSH profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/souvik/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
@souvikmaji
souvikmaji / http_requests.md
Last active June 17, 2018 08:53
Notes on HTTP

HTTP Requests

Method Request has body Successful response has body Safe Idempotent Cacheable Allowed in html forms
GET No Yes Yes Yes Yes Yes
HEAD No No Yes Yes Yes No
POST Yes Yes No No Only if freshness information is included Yes
PUT Yes No No Yes No No
DELETE May May No Yes No No
CONNECT No
<html>
<head>
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<div class="container">
<div class="section">
<h1 class="center-align indigo-text darken-2">Richard Feynman</h1>
package main
import (
"fmt"
"github.com/gin-gonic/gin"
_ "github.com/go-sql-driver/mysql"
"github.com/jinzhu/gorm"
)
@souvikmaji
souvikmaji / vimrc.vim
Last active May 4, 2023 04:17
my vim rc file
set nocompatible " disable vi compatibility
if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
set fileencodings=ucs-bom,utf-8,latin1
endif
" Only do this part when compiled with support for autocommands
if has("autocmd")
augroup fedora
@souvikmaji
souvikmaji / result.py
Last active August 29, 2015 14:19
Fetch result of all students from jadavpur university website and save that in a file
from bs4 import BeautifulSoup
import requests
file = open("results.txt","w")
for roll in range(1,60):
if 1<=roll<10:
rollstr = '0' + str(roll)
else:
rollstr = str(roll)
@souvikmaji
souvikmaji / student.cpp
Last active March 29, 2018 04:31
Design a STUDENT class to store roll, name, course, admission date and marks in 5 subjects. Provide methods corresponding to admission date and receiving marks, preparing mark sheet. Support must be there to show the number of students who have taken admission
#include <iostream>
#include <fstream>
#include <ctime>
#include <string>
#include <cstring>
using namespace std;
ofstream f1("Register", ios::app);
ofstream f2("Marksheet", ios::app);