Skip to content

Instantly share code, notes, and snippets.

View kzelda's full-sized avatar
😄
الحمد لله

kzelda

😄
الحمد لله
View GitHub Profile
// Source: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
// Example POST method implementation:
async function postData(url = '', data = {}) {
// Default options are marked with *
const response = await fetch(url, {
method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached
credentials: 'same-origin', // include, *same-origin, omit
headers: {
@kzelda
kzelda / Git-Rename-Branch.md
Last active January 13, 2021 09:25
Rename git branch master to main
# Switch to the "master" branch:
$ git checkout master

# Rename it to "main":
$ git branch -m master main

# Get the latest commits (and branches!) from the remote:
$ git fetch
@kzelda
kzelda / Disable_cache_index.html_iis_web.config.md
Last active November 9, 2020 15:48
Asp.net - How to disable caching of single page application HTML file served through IIS
@kzelda
kzelda / index.html
Created November 8, 2020 16:26
Quasar Framework v1
<div id="q-app">
<div class="q-ma-md">
Fork and make your own!
Do NOT use self-closing tags here on Codepen.
</div>
<div class="q-ma-md">
<q-btn label="Notify" color="primary" @click="notify"></q-btn>
</div>
@kzelda
kzelda / Pure-css-parceljs.md
Last active May 7, 2020 09:09
Quick start with pure-css & parceljs
mkdir app
cd app
wget -r https://purecss.io/layouts/side-menu/

yarn init --yes
yarn add --dev parcel@next serve
// package.json
@kzelda
kzelda / Export_Extract_Pdf_To_Images_Using_Gimp.md
Last active April 26, 2020 07:44
Extract/Export pdf to images using gimp
@kzelda
kzelda / gitcom.md
Created April 2, 2020 12:15 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@kzelda
kzelda / git_cheat-sheet.md
Created April 2, 2020 12:14 — forked from davfre/git_cheat-sheet.md
git commandline cheat-sheet
@kzelda
kzelda / README.md
Created April 2, 2020 12:09 — forked from hofmannsven/README.md
Git Cheatsheet