Skip to content

Instantly share code, notes, and snippets.

View MrSnor's full-sized avatar
👋
:)

Partha Priyadarshi Das MrSnor

👋
:)
View GitHub Profile

Examples for sql commands -

Oracle SQL command to show all tables

SELECT * FROM user_tables;

or legacy wise

@MrSnor
MrSnor / Major assignment - 1.ipynb
Last active April 12, 2024 01:53
IDSUP Major Assignment 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MrSnor
MrSnor / Useful stuff.md
Last active April 11, 2024 19:14 — forked from Explosion-Scratch/Useful stuff.md
Some Useful stuff

Useful resources

Here you will find lots of useful resources to me as a developer, everything from font pairing, to regex finding, to tailwind resources is here! If you have any suggestions feel free to suggest them in a comment!

Fonts

@MrSnor
MrSnor / Chapter 3 Visualizing Data.ipynb
Last active April 11, 2024 01:04
IDSUP programs (chapterwise)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MrSnor
MrSnor / React File Upload Component with Previews.md
Created October 28, 2023 03:07
The code snippet is a React component that allows users to upload files by dragging and dropping them or selecting them from their device. It displays a container with a message and an icon, and previews the uploaded files with an option to remove them.

React File Upload Component with Previews

Preview:
import { useState } from 'react';
// import './FileUpload.css';
import { useDropzone } from 'react-dropzone';
import { useEffect } from 'react';
import { cn } from '@/lib/utils';
import { Trash } from 'lucide-react';
import { AnimatePresence, motion } from 'framer-motion';
@MrSnor
MrSnor / Client.java
Last active October 2, 2023 07:38
Simple Java Server and Client (to send and receive a message)
import java.io.DataOutputStream;
import java.net.Socket;
import java.util.Scanner;
public class Client {
public static void main(String args[]) {
try {
// Now we will create a socket object and connect it to the server
// Here localhost means that the server is running on the same machine as the
@MrSnor
MrSnor / gh-pages-deploy.md
Created March 4, 2023 08:34 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@MrSnor
MrSnor / design.html
Created October 21, 2021 15:23 — forked from tanaypratap/design.html
Design for expense app
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Personal expense</title>
<style>
body {
display: flex;
justify-content: center;