Skip to content

Instantly share code, notes, and snippets.

View Welding-Torch's full-sized avatar
💛
Build Stuff!

Welding Torch Welding-Torch

💛
Build Stuff!
View GitHub Profile

This is a Civilized Place for Public Discussion

Please treat this discussion forum with the same respect you would a public park. We, too, are a shared community resource — a place to share skills, knowledge and interests through ongoing conversation.

These are not hard and fast rules, merely guidelines to aid the human judgment of our community and keep this a clean and well-lighted place for civilized public discourse.

Improve the Discussion

Help us make this a great place for discussion by always working to improve the discussion in some way, however small. If you are not sure your post adds to the conversation, think over what you want to say and try again later.

The topics discussed here matter to us, and we want you to act as if they matter to you, too. Be respectful of the topics and the people discussing them, even if you disagree with some of what is being said.

@Welding-Torch
Welding-Torch / CS50Theme.md
Last active October 30, 2024 00:30
CS50's VS Code Theme

Hi, I figured it out! So the theme is basically GitHub Dark Default with a few customizations. To add the customizations, you have to open up settings.json and add a few things.

Step 1: Set the theme to GitHub Dark Default.

Step 2: Press Ctrl + Shift + P and then type Preferences: Open Settings (JSON)

Step 3: Scroll down until you find workbench.colorCustomizations and then inside that you should paste this:
"[GitHub Dark Default]": { // This is CS50 style :)
"activityBar.background": "#000",
"editor.background": "#000",

@Welding-Torch
Welding-Torch / credit.c
Created July 21, 2023 16:49
My Credit Card Validation Program
#include <cs50.h>
#include <stdio.h>
int initialvalidate(long cardnumber); // Checks if cardnumber is 13, 15, or 16 digits long.
int validate(long cardnumber); // Luhn's algorithm.
string whichbrand(long cardnumber); // Tells which brand i.e. VISA, MASTERCARD, AMEX.
int countdigits(long num); // Used for initial validation.
int main(void)
{
-- Paste the following into https://www.programiz.com/sql/online-compiler/
DROP TABLE Customers;
DROP TABLE Orders;
DROP TABLE Shippings;
create table Client_master (
Client_no varchar(6) primary key,
Name varchar(20) not null,
City varchar(15),
@Welding-Torch
Welding-Torch / hash2.py
Last active March 24, 2023 06:38
hash 2
# Program to implement Double Hashing
class doubleHashTable:
# initialize hash Table
def __init__(self):
self.size = int(input("Enter the Size of the hash table : "))
self.num = 5
# initialize table with all elements 0
self.table = list(0 for i in range(self.size))
self.elementCount = 0
@Welding-Torch
Welding-Torch / doubleHashTable.py
Last active March 23, 2023 17:47
double hash table
# Program to implement Double Hashing
class doubleHashTable:
# initialize hash Table
def __init__(self):
self.size = int(input("Enter the Size of the hash table : "))
self.num = 5
# initialize table with all elements 0
self.table = list(0 for i in range(self.size))
self.elementCount = 0
@Welding-Torch
Welding-Torch / areaoftriangle.c
Created June 18, 2022 17:16
Assignment list for CP-Practical
/******************************************************************************
18 June, 2022
Write a program to find the area of a triangle using Heron's Formula.
3 sides of a triangle
Herons formula is s=(a + b + c)/2 and then sqrt(s*(s-a)*(s-b)*(s-c))
*******************************************************************************/
#include <stdio.h>
@Welding-Torch
Welding-Torch / autocad.md
Created June 5, 2022 04:16
Div A (Artificial Intelligence and Data Science's AutoCAD Configuration for Dimensions)

image image image image image image image