Skip to content

Instantly share code, notes, and snippets.

View eljamez's full-sized avatar
🕶️
Good Times

James Augustus Hall eljamez

🕶️
Good Times
View GitHub Profile
@eljamez
eljamez / getUrlParamsObj.js
Created June 19, 2018 21:02
ES6 friendly function to retrieve url parameters as an Object.
const getUrlParamsObj = (queryString) => {
const paramsArray = (window.location.search.charAt(0) === "?")
? window.location.search.substr(1).split('&')
: window.location.search.split('&')
return paramsArray.reduce((mainObj, val) => {
const valArray = val.split('=')
return Object.assign(mainObj, {[valArray[0]]: valArray[1]})
}, {})
}
@eljamez
eljamez / pr.md
Last active May 10, 2019 14:12
PR Template

Description

Description of changes

Ticket

ticket number

Dependencies

None

Screenshot

( add screenshot here )

@eljamez
eljamez / index.html
Created May 4, 2020 22:57
Quick Grid Page Layout
<div class="grid">
<header>Header</header>
<aside>Aside</aside>
<main>Main</main>
<footer>Footer</footer>
</div>