Skip to content

Instantly share code, notes, and snippets.

View sameeramin's full-sized avatar
🎯
Focusing

Muhammad Sameer Amin sameeramin

🎯
Focusing
View GitHub Profile
@sameeramin
sameeramin / mamp.sh
Created April 2, 2024 06:52
A simple function to start, stop and restart MAMP server from terminal
function mamp() {
# Author: Muhammad Sameer
# Gist: https://gist.github.com/sameeramin/76fd2bc738b1a47663b2ed5f1b68ef1a
# License: MIT
# Description: A simple function to start, stop and restart MAMP server from terminal
if [ -z "$1" ]; then
echo "Usage: mamp <start|stop|restart>"
return 1
fi
@sameeramin
sameeramin / README.md
Created January 13, 2024 11:58
Computer Vision Concepts
@sameeramin
sameeramin / README.md
Last active July 31, 2023 06:11
Git Cheat Sheet

Sure, here's a basic Git cheat sheet in Markdown format for beginners:

Git Cheat Sheet for Beginners

Configuration

Configure Git with your name and email:

git config --global user.name "Your Name"
@sameeramin
sameeramin / imports.py
Created May 2, 2021 14:32
Doc2Vec Based Article Recommender
# Import libraries and modules modules.
from gensim.models.doc2vec import Doc2Vec, TaggedDocument
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
import pandas as pd
@sameeramin
sameeramin / sale_invoice.php
Created May 26, 2020 09:12
How can I create an update invoice for it?
$sal_date = trim($_POST["sale_date"]);
$cust_id = trim($_POST["cust_id"]);
$book_no = trim($_POST["sal_book_no"]);
$rem = $_POST["sal_remarks"];
$st = trim($_POST["sub_total"]);
$disc = floatval($_POST["total_disc"]) + floatval($_POST["adj_disc"]);
$total = trim($_POST["grand_total"]);
$query1 = mysqli_query($link, "INSERT INTO sales
(cust_id, book_no, sale_date, sub_total, discount, total, remarks)