Skip to content

Instantly share code, notes, and snippets.

View OpeOnikute's full-sized avatar
💭
Chilling.

Opeyemi Onikute OpeOnikute

💭
Chilling.
View GitHub Profile
{
"percentDifference": null,
"quoteResponse": {
"contextSlot": 215185291,
"inAmount": "171",
"inputMint": "RLBxxFkseAZ4RgJH3Sqn8jXxhmGoz9jWxDNJMh8pL7aa",
"otherAmountThreshold": "63839141",
"outAmount": "63903044",
"outputMint": "PRT88RkA4Kg5z7pKnezeNH4mafTvtQdfFgpQTGRjz44",
"platformFee": null,
# Git command shortcuts
alias gcam="git commit -am"
alias dcu="docker-compose up"
alias dcd="docker-compose down"
alias dcl="docker-compose logs -f"
alias dc="docker container"
alias gpo="git push origin"
alias gcm="git checkout master"
function merge_into_dev() {
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
ErrorDocument 404 /404.html
</IfModule>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
@OpeOnikute
OpeOnikute / string-utils.js
Created June 6, 2018 23:07 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
// String utils
//
// resources:
// -- mout, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str){
return str.toLowerCase();