Respect line breaks when display any text (like comment or snippet) [need content]

Respect line breaks when displaying any text depending on your line breaks when typing your comment or your snippet

Git famous commands

Here is a list of the most commonely used Git commands, that no one can use Git without.

Making the footer always at the bottom if there is little or no content in the page

Sometimes you will need to show the footer at the bottom of the page when there is little or not content. and not directly after the contents because this makes the footer alittle bit lifted up and not elegantly shown on the page.

Pass current data id from anchor tag href to bootstrap model

Pass current data id from anchor tag href to a button in a bootstrap modal - Example (delete confirmation modal)

Delete previous uploaded image when user uploading a new one

Delete previous uploaded image when user uploading a new one for profile picture (as example)

Upload Image and validate on it on laravel

how to upload image and validate on its properties and display it

Loop through a json object data using javascript or jquery

If you have a data object that is json encoded and need to iterate through the inner data objcets here are different suggestions

A jQuery ajax example

If you need to call a resource on the server using the jquery ajax technique, here is an example

Setup Git on remote and local server

Setup a git repository on your local and remote servers together, So that you can manage and upload your website directly from your local git repo to online repo.