Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>groupId</groupId>
<artifactId>artifactid</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>projectName</name>
{
"s3_input_bucket" : "dns_dwh_tables",
"s3_input_key" : "customer_skus",
"api_endpoint" : "customer_skus",
"glue_db" : "",
"glue_table" : ""
}
/*
/*
Your previous Plain Text content is preserved below:
Conway’s Game of Life
Imagine we have an n x n grid (n>=4) with each cell containing an organism. At any stage a cell can be alive or dead. The cell’s lifecycle is determined by its state (alive or dead) in the previous stage.
---
Description: CloudFormation template for creating an EMR cluster
Parameters:
VPC:
Description: VPC ID for creating the Amazon EMR cluster & BI Server
Type: AWS::EC2::VPC::Id
EmrClusterName:
Description: The name of the EMR cluster
Type: String
EmrSubnet:
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "6ea870aa",
"metadata": {},
"outputs": [
{
"data": {
[
{
'id': 353152,
'lineNumber': 1,
'sku': 9317,
'quantity': 108,
'deliveryDate': '2021-09-27',
'description': 'PHYSALIS GREEN TEA TABL',
'unitCost': '5.700000',
'status': 'Received',
object TreeProblem extends App {
case class Employee(name: String, manages: collection.mutable.ListBuffer[Employee], var managed: Option[Employee])
case class EmployeesTree(employee: Employee)
def findEmployeeInTree(baseNode: Employee, name: String): Option[Employee]={
if(baseNode.name.equals(name)){
Some(baseNode)
}
else{
apiVersion: v1
kind: Service
metadata:
labels:
app: kafka-broker
name: kafka-broker-svc
spec:
type: NodePort
ports:
- name: kafka-port
INFO: Server startup in 15831 ms
Registered app server agent with Node ID[191655] Component ID[1317] Application ID [190]
Mar 05, 2018 10:34:42 AM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Mar 05, 2018 10:34:42 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-apr-7800"]
Mar 05, 2018 10:34:42 AM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-apr-7500"]
Mar 05, 2018 10:34:42 AM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
name := "pulse-akka"
version := "0.1"
val akkaVersion = "2.5.4"
val akkaHttpVersion = "10.0.10"
val commonDependencies: Seq[ModuleID] = Seq(
"org.scalatest" %% "scalatest" % "3.0.1",
"org.slf4j" % "slf4j-log4j12" % "1.7.10"
)
scalaVersion := "2.12.2"