Skip to content

Instantly share code, notes, and snippets.

@sebbel
sebbel / cdk_with_service_catalog.ts
Created November 17, 2021 15:04 — forked from s0enke/cdk_with_service_catalog.ts
Generate AWS Service Catalog Products from CDK Constructs
// Possible since https://github.com/aws/aws-cdk/pull/17144
class VpcProduct extends servicecatalog.ProductStack {
vpc: aws_ec2.Vpc;
constructor(scope: Construct, id: string) {
super(scope, id);
this.vpc = new aws_ec2.Vpc(this, 'Vpc', {
@sebbel
sebbel / github-federation.ts
Last active September 15, 2021 20:45
GitHub Actions AWS Federation in CDK
import { App, Construct, Stack, StackProps } from '@aws-cdk/core';
import * as iam from '@aws-cdk/aws-iam';
const repo = "aws-cdk";
const owner = "aws";
export class GithubFederation extends Stack {
constructor(scope: Construct, id: string, props: StackProps = {}) {
super(scope, id, props);

Keybase proof

I hereby claim:

  • I am sebbel on github.
  • I am sebbel (https://keybase.io/sebbel) on keybase.
  • I have a public key ASCTemJVZ-nBqY6NOxrOEmcrO-tENi9jktEz4uJqDTrNKwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am sebbel on github.
  • I am seball (https://keybase.io/seball) on keybase.
  • I have a public key ASDT5Mr1hhgE7e2emv7Sust33ZB_ZWC0LZR7aiW9rx5JXAo

To claim this, I am signing this object:

@sebbel
sebbel / Main.purs
Created July 24, 2019 20:40
Euler #1
module Main where
import Prelude
import Control.Monad.Eff.Console (logShow)
import TryPureScript (render, withConsole)
import Data.List (filter, range)
import Data.Foldable (sum)
multiples :: Int -> Int
multiples max = sum $ filter expr nums
Template.editCourse.events({
'click #edit-course':function(event, template){
// set editing course session variable to this course id
this_course = window.location.pathname.substring(8,(window.location.pathname.length));
Session.set('editingCourseID', this_course);
console.log(this_course);
}
});