This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_s3_bucket" "static_website" { | |
bucket = "your-static-website-bucket" | |
acl = "private" | |
website { | |
index_document = "index.html" | |
error_document = "error.html" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Recursive function to walk down into the config object and return the requested data | |
* | |
* @param {string[]} pathArray Array containing the paths to the requested key | |
* @param {Object} inputObj The object being traversed. | |
* @param {number} [idx=0] Current index. Used internally to determine where in the pathArray we are | |
* | |
* @returns {any|null} Requested config setting(s) | |
*/ | |
const recurseConfigPath = (pathArray, inputObj, idx = 0) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rootdir=`pwd` | |
echo $rootdir | |
for dir in */; do | |
cd "$rootdir/$dir" | |
echo "Installing $dir at $PWD" | |
npm i | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Delivery/Event Dates | Flower Moxie</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.6/flatpickr.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.17.1/axios.min.js"></script> | |
<script type="text/javascript" src="supplies.js"></script> | |
<link rel="stylesheet" href="supply.css" type="text/css" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flatpickr/4.6.6/flatpickr.min.css"> | |
<style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let nav_buttons = document.querySelectorAll('.nav'); | |
function addNavButtonListeners() { | |
Array.from(nav_buttons).forEach(button => { | |
button.addEventListener('click', e => { | |
console.log(button); | |
e.preventDefault(); | |
if(button.classList.contains('next')){ | |
switchPanel(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const XML2JSON = (xml, selector) => { | |
let entries = xml.querySelectorAll(selector); | |
let outData = []; | |
Array.from(entries).forEach((entry, i) => { | |
outData[i] = {}; | |
Array.from(entry.children).forEach(node => { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This test takes an array, loops through each top level index | |
// and logs an error if the index contains an array. | |
// Passes are tallied, and passes/fails are output at the end of the test. | |
const flattenTest = arr => { | |
// Define error message and initialize pass counter | |
const errorMessage = ind => `Index ${ind} contains an array`; | |
let passCount = 0; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2018-10-31T18:05:50.635Z","extensionVersion":"v3.2.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
sass: { | |
dist:{ | |
options: { | |
style: 'expanded', | |
compass: true |
NewerOlder