Consider the following JS monorepo folder structure:
.
├── apps
│ ├── backend
│ └── react-app
│ ├── node_modules <-- INNER NODE_MODULES
│ ├── package-lock.json
│ └── package.json
#!/bin/bash | |
# Aliases | |
git config --global alias.c commit | |
git config --global alias.s status |
Consider the following JS monorepo folder structure:
.
├── apps
│ ├── backend
│ └── react-app
│ ├── node_modules <-- INNER NODE_MODULES
│ ├── package-lock.json
│ └── package.json
UNSPLASH_ACCESS_KEY=<your_key> |
const fontUrl = 'https://fonts.gstatic.com/s/robotomono/v22/L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_Of2_ROW-AJi8SJQt.woff' | |
const robotoFont = new FontFace('Roboto Mono', `url(${fontUrl})`); | |
// Canvas variables | |
const canvas = document.createElement('canvas') | |
const ctx = canvas.getContext('2d') | |
robotoFont.load().then((font: FontFace) => { | |
// This is REQUIRED | |
document.fonts.add(font); |
So, in order to create a Glue Job that's able to connect to ANYTHING AT ALL inside a VPC, you'll have to create a AWS::Glu::Connection
as such:
GlueJobVPCConnection:
Type: AWS::Glue::Connection
Properties:
CatalogId: !Ref AWS::AccountId
ConnectionInput:
Name: !Sub "${AWS::StackName}-vpc-connection"
ConnectionType: NETWORK
PhysicalConnectionRequirements:
const dwemthysArrayOf = (...creatures) => { | |
return new Proxy(creatures, { | |
get: function(target, prop, _) { | |
if (target.length == 0) { | |
console.log("[Whoa. You decimated Dwemthy's Array!]"); return; | |
} | |
let enemy = target[0]; | |
if (enemy.life <= 0) { | |
target.shift(); |
const Rabbit = creatureFactory("Rabbit", 10, 2, 44, 4, /* more here */); | |
const littleRabbit = new Rabbit(); |
const creatureFactory = ( | |
name, life, strength, charisma, weapon, customProps | |
) => function create() { | |
return { | |
name, life, strength, | |
charisma, weapon | |
// ... | |
} | |
}; | |
const Rabbit = creatureFactory("Rabbit", 10, 2, 44, 4 /* more here */); |
class Creature { | |
constructor() { | |
this.traits("life", "strength", "charisma", "weapon"); | |
} | |
traits(...args) { | |
args.forEach(name => { | |
Object.defineProperty(this, name, { | |
writable: true | |
}); | |
}); |
// https://github.com/Gympass/interview-test | |
// Setup | |
import java.util.Arrays | |
import java.time.{LocalTime,Duration} | |
import java.time.format.DateTimeFormatter | |
import scala.collection.mutable.ListBuffer | |
// Test input | |
var INPUT = """Hora Piloto Nº Volta Tempo Volta Velocidade média da volta |