Skip to content

Instantly share code, notes, and snippets.

View Mouradouchane's full-sized avatar
🌟

MOURAD Mouradouchane

🌟
View GitHub Profile
@scmx
scmx / using-details-summary-github.md
Last active April 27, 2025 10:10
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example

@bartobri
bartobri / hashtable.c
Created August 15, 2017 14:54
Hash Table Example code
#include <stdio.h>
#include "hashtable.h"
// Table size. Should be a prime number that is roughly 2x the
// number of expected records for optimal performance.
#define M 97
// Our record table definition, an array of M records.
Record record_table[M];
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active May 7, 2025 20:05
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@simonista
simonista / .vimrc
Last active May 7, 2025 17:05
A basic .vimrc file that will serve as a good template on which to build.
" Don't try to be vi compatible
set nocompatible
" Helps force plugins to load correctly when it is turned back on below
filetype off
" TODO: Load plugins here (pathogen or vundle)
" Turn on syntax highlighting
syntax on
@yoggy
yoggy / CreateProcess_CreateNoWindow_Test.cpp
Created March 6, 2012 09:36
How to use CreateProcess() function (WIN32)
//
// see also...
//
// CreateProcess (MSDN)
// http://msdn.microsoft.com/ja-jp/library/cc429066.aspx
//
#include <SDKDDKVer.h>
#include <windows.h>
int APIENTRY WinMain(HINSTANCE hInstance,