Skip to content

Instantly share code, notes, and snippets.

View olayenca's full-sized avatar
🎯
Focusing

Olayenca olayenca

🎯
Focusing
View GitHub Profile
@olayenca
olayenca / aws-multipartUpload.js
Last active June 19, 2020 17:00 — forked from sevastos/aws-multipartUpload.js
Example AWS S3 Multipart Upload with aws-sdk for Node.js- Retries to upload failing parts
const AWS = require('aws-sdk');
const {
red, green, yellow,
} = require('kleur');
const s3 = new AWS.S3();
const partSize = 1024 * 1024 * 5;
const multipartMap = {
Parts: [],
};
@olayenca
olayenca / index.js
Created December 17, 2019 11:30
Add color to console.log
const colors = {
Reset : "\x1b[0m",
FontBlack : "\x1b[30m",
FontRed : "\x1b[31m",
FontGreen : "\x1b[32m",
FontYellow : "\x1b[33m",
FontBlue : "\x1b[34m",
FontMagenta : "\x1b[35m",
FontCyan : "\x1b[36m",
FontWhite : "\x1b[37m",
@olayenca
olayenca / app.py
Last active December 11, 2019 10:19
Flask Server for a UI5 webapp
# -*- coding: utf-8 -*-
"""
@author: Olayinka Otuniyi
Created on Wed Dec 10 09:12:17 2019
"""
import platform
from flask import Flask, render_template
from flask_cors import CORS
@olayenca
olayenca / webpack.common.js
Last active October 1, 2019 19:11
Webpack bundle configuration
const path = require("path");
const webpack = require("webpack");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const autoprefixer = require("autoprefixer");
module.exports = env => ({
mode: env,
entry: {