Skip to content

Instantly share code, notes, and snippets.

View oderayi's full-sized avatar
🎯
Focusing

Steven Oderayi oderayi

🎯
Focusing
View GitHub Profile
@oderayi
oderayi / coding-challenge.js
Created January 11, 2022 15:51
Trailer Allocation
const assert = require('assert').strict
const allocateTrailers = (carLengths, trailerLength) => {
let remainder = trailerLength;
const trailers = [];
let used = 0
while (used < carLengths.length) {
remainder = trailerLength;
const trailer = [];
@oderayi
oderayi / RenkoATR.mq4
Last active November 4, 2021 18:08
Renko Chart Generator with ATR
//+------------------------------------------------------------------+
//| IndRange.mq4 |
//| Copyright 2016, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2016, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property description "The indicator creates an Range chart"
#property strict
@oderayi
oderayi / S3-Static-Sites.md
Created April 3, 2019 14:50 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources