Skip to content

Instantly share code, notes, and snippets.

View ibkadeeko's full-sized avatar

Ibukunoluwa Adeeko ibkadeeko

View GitHub Profile
@ibkadeeko
ibkadeeko / gist:54c6fc571f8dacdc292a7d0dbae2f267
Created September 5, 2024 09:24 — forked from n00neimp0rtant/gist:9515611
simple squash without rebase
## within current branch, squashes all commits that are ahead of master down into one
## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case)
## commit any working changes on branch "mybranchname", then...
git checkout master
git checkout -b mybranchname_temp
git merge --squash mybranchname
git commit -am "Message describing all squashed commits"
git branch -m mybranchname mybranchname_unsquashed
git branch -m mybranchname
@ibkadeeko
ibkadeeko / arrayQueryParams.md
Last active November 1, 2021 20:32
How to handle passing array query parameters in http requests.

How to handle passing array query parameters in http requests

Sending arrays in requests.

The best way to handle sending of http query parameters in Nodejs is by using the in-built URLSearchParams.

const createQueryString = (parameters = {}) => {
  const query = new URLSearchParams();
  for (const [key, value] of Object.entries(parameters)) {
 query.append(key, value);
@ibkadeeko
ibkadeeko / cloudSettings
Last active February 13, 2020 13:45
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-13T13:37:25.061Z","extensionVersion":"v3.4.3"}