Skip to content

Instantly share code, notes, and snippets.

View nacersalaheddine's full-sized avatar
😷
Stop Talking, and don't show me your spaghetti code.

Salah Eddine Nacer nacersalaheddine

😷
Stop Talking, and don't show me your spaghetti code.
View GitHub Profile
@nacersalaheddine
nacersalaheddine / CDN.md
Created May 14, 2019 03:55 — forked from vinkla/CDN.md
A guide on how to upload images to GitHub's CDN through issue and pull request text fields.

Upload Images to GitHub's CDN

  1. First, visit any repository on GitHub and click your way through to the issues page.

  2. Create a new issue by clicking the button New Issue. You'll now see both a title and a description field.

  3. Drag-and-drop an image on to the description field. This will start the uploading process.

  4. Copy the URL and use it in README, issues or pull requests however you like.

@nacersalaheddine
nacersalaheddine / strlen.c
Last active June 9, 2019 02:45
Calculate the length of a string in C lang.
#include<stdio.h>
/*
Author:nacer salah eddine.
Description:Calculate the length of a string in C lang.
Compile:
gcc strlen.c -std=c99 -Wall -o strlength
*/
size_t size_of_string(const char* str){
/*
Put the @(address) of pointer str into the pointer p
@nacersalaheddine
nacersalaheddine / occurrences.c
Last active June 9, 2019 02:45
Calculate the occurrences of a character in C lang.
#include<stdio.h>
/*
Author:nacer salah eddine.
Description:Calculate the occurrences of a character in C lang.
Compile:
gcc occurrences.c -std=c99 -Wall -o occurrences
*/
size_t occurrences_of_char(const char s,const char* str){
/*