Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
/* eslint-disable */ | |
const AWS = require('aws-sdk') | |
/* eslint-enable */ | |
const s3 = new AWS.S3({}) | |
/* eslint-disable */ | |
exports.handler = function(event, context) { | |
/* eslint-enable */ | |
const config = event.ResourceProperties |
#! /bin/bash | |
set -e | |
## Step Zero | |
## Checks to see if we've checked out to a newly-created branch & if we have, auto-commits an empty "first" commit | |
## | |
## Rationale: Due to the way Git maintains refs to hashes for HEAD (even when moving between branches of different names) | |
## we need to first always add a default/empty commit on new branch checkout. It's also nice because it orients you. | |
## | |
## Don't believe me? |
Embedded stack arn:aws:cloudformation:us-west-2:<STAGINGACCOUNTNUMBER>:stack/staging-WebAppStack-FrontendStackNestedStackFrontendStackNestedStackResource7A0E341B-1INCLV1YSO50I/b1e16370-7dab-11eb-9d50-061858c75b4d was not successfully created: The following resource(s) failed to create: [subzoneDelegationCrossAccountZoneDelegationRecordCrossAccountZoneDelegationRecordarubaniwebstaginggruvmeD89FF7A1, CertificateCertificateRequestorFunctionServiceRoleDefaultPolicy3C8845BC]. |
#!/usr/bin/env bash | |
# License: MIT - https://opensource.org/licenses/MIT | |
# | |
# Usage: | |
# | |
# Encrypt a file: | |
# kms-vault encrypt My-Key-Alias some-file-i-want-encrypted.txt > topsecret.asc | |
# |
Feel free to contact me at [email protected] or tweet at me @statisticsftw
This is a rough outline of how we utilize next.js and S3/Cloudfront. Hope it helps!
It assumes some knowledge of AWS.
const myShittyArray = [55, 12, 32, 42, 17, 88, 19, 23, 71, 86, 22] | |
const bubbleSort = (array) => { | |
// a method to swap values @ a given pair of index positions | |
this.shifter = (input, idxNext, idxElement) => { | |
let temp = input[idxNext] | |
input[idxNext] = input[idxElement] | |
input[idxElement] = temp |
# OSX | |
# | |
.DS_Store | |
# Git history backup | |
.git.bak | |
# Xcode | |
# | |
build/ |
require('es6-promise'); | |
// setTimeout(function() { console.log('TIMED OUT!') }, 300); | |
var promise = new Promise((fulfill, reject) => { | |
setTimeout(() => { | |
fulfill("FULFILLED!") | |
}, 300) | |
}) | |
.then((successMessage) => { |
var bubbleSort = function(array) { | |
// a method to swap values @ a given pair of index positions | |
this.shifter = function(input, idxNext, idxElement) { | |
console.log('shifter engaged'); | |
var temp = input[idxNext]; | |
input[idxNext] = input[idxElement]; | |
input[idxElement] = temp; | |
return input; | |
} |
// My Code | |
for (var i = 1; i <= 100; i++) { | |
switch (true) { | |
//case ((i % 3 === 0) && (i % 5 === 0)): | |
case (i % 15 === 0): // Use one comparison instead of two, because maths | |
console.log("FizzBuzz"); | |
break; | |
case (i % 3 === 0): |