Skip to content

Instantly share code, notes, and snippets.

View braska's full-sized avatar

Danil Agafonov braska

  • Diligent Corporation
  • Vancouver, Canada
  • 21:25 (UTC -07:00)
View GitHub Profile
@braska
braska / Overlay.jsx
Created May 22, 2019 19:26
React Portals
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import { rgba } from 'polished';
const Wrapper = styled.div`
position: absolute;
z-index: 10000;
&::before {
did:3:kjzl6cwe1jw145op9h0mianjjuk1psfve485edvvrit3khvxctclrnlc2ahowo1
@braska
braska / application-stack.ts
Last active July 29, 2023 23:17
Cross-stage Cloudwatch dashboard
interface ApplicationStackProps extends StackProps {
dashboardStack: DashboardStack;
}
export class ApplicationStack extends Stack {
constructor(scope: Construct, id: string, props: ApplicationStackProps) {
super(scope, id, props);
const myFunction = new NodejsFunction(this, 'MyFunction', {
functionName: PhysicalName.GENERATE_IF_NEEDED,