Skip to content

Instantly share code, notes, and snippets.

View MuhammadSulaiman001's full-sized avatar
🏠
Working from home

Muhammad Sulaiman MuhammadSulaiman001

🏠
Working from home
View GitHub Profile
using System;
using System.Speech.Recognition;
namespace ConsoleApp
{
internal static class Program
{
private static void Main(string[] args)
{
// Create an in-process speech recognizer for the en-US locale.
@MuhammadSulaiman001
MuhammadSulaiman001 / xampp-setup.md
Created August 27, 2022 06:48 — forked from peterhurford/gist:8602d9fb334baa71d983
How to use XAMPP to test PHP on your own computer

So this is a guide for how to use XAMPP to test any PHP website on your own computer. Well, actually, it's more a guide of guides than an actual guide. I personally didn't find the process to be bad, but it also wasn't straightforward, and it involved a lot of googling separate problems. There was no One Guide for the Entire Process, but a bunch of separate things.

So I decided to put everything together. Here are the steps:

Step 1: Install XAMPP. Download from here.

Step 2: Set up XAMPP. Follow instructions here.

Step 3: Go to PhpMyAdmin and create any relevant MySQL tables, if any.

@MuhammadSulaiman001
MuhammadSulaiman001 / .gitignore
Last active August 22, 2022 08:56 — forked from kmorcinek/.gitignore
Example .gitignore file I use for C# projects
# The following command works for downloading when using Git for Windows:
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
#
# Download this file using PowerShell v3 under Windows with the following comand:
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
#
# or wget:
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
# User-specific files
@MuhammadSulaiman001
MuhammadSulaiman001 / clean_code.md
Created August 20, 2022 09:50 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@MuhammadSulaiman001
MuhammadSulaiman001 / AdsExtensions.cs
Last active January 3, 2024 11:27
Update ui-bound variables via modern-reactive Twincat libs
using System;
using System.Collections.Generic;
using TwinCAT.Ads;
using TwinCAT.Ads.Reactive;
namespace Project.CncModule.Utils;
public static class AdsExtensions
{
private static readonly HashSet<IDisposable> AdsDisposables = new();
@MuhammadSulaiman001
MuhammadSulaiman001 / Git Branching Strategy.md
Created August 1, 2022 17:52 — forked from jpolete/Git Branching Strategy.md
Git/GitHub branching standards & conventions

Git Branching Strategy

Quick Legend

Branch Name Notes
Stable master Accepts merges from Release and Hotfix branches only.
Development develop Accepts merges from Feature/Bugfix, Release and Hotfix
Features/Bugfix feat-* / bug-* Always branch off HEAD of develop
Hotfix hotfix-* Always branch off master. Merges back into master and develop.
@MuhammadSulaiman001
MuhammadSulaiman001 / CHANGELOG.md
Created April 20, 2022 18:28 — forked from juampynr/CHANGELOG.md
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as