Skip to content

Instantly share code, notes, and snippets.

make sure subdir exists
@rix0rrr
rix0rrr / app-delivery.md
Last active August 30, 2023 17:26
Python READMEs

Continuous Integration / Continuous Delivery for CDK Applications---

Stability: Experimental

This is a developer preview (public beta) module. Releases might lack important features and might have future breaking changes.

This API is still under active development and subject to non-backward compatible changes or removal in any future version. Use of the API is not recommended in production

@rix0rrr
rix0rrr / stacks.template.yml
Created March 19, 2019 16:24
Stacks with dependencies
Resources:
Stack1:
Type: 'AWS::CloudFormation::Stack'
Properties:
TemplateURL: ...
Stack2:
Type: 'AWS::CloudFormation::Stack'
Properties:
TemplateURL: ...
DependsOn:
@rix0rrr
rix0rrr / 1-app-is-your-app.ts
Created March 4, 2019 10:37
apps apps apps
// Simple case, my "app" is just a stack
const app = new cdk.App();
new MyStack(app, 'MyFrobulizerConsumer');
//---------------------------------------------------------------------------
// More complex case, my "app" is a subclass of App because it contains multiple
// stacks and I can organize them
new MyApp('TweetFrobulizer');
@rix0rrr
rix0rrr / lerna.json
Last active November 12, 2018 10:59
Lerna bug repro
/* lerna.json */
{
"packages": [
"packages/*"
],
"rejectCycles": "true",
"version": "0.1.0"
}
@rix0rrr
rix0rrr / wysihtml5 ko binding handler
Created November 19, 2012 12:38 — forked from codescribler/wysihtml5 ko binding handler
A binding handler for binding knockout observables to a wysihtml5 editor
/**
* Correct version of a wysihtml5 binding for KnockoutJS that is safe for multiple inclusion on a single page
*/
ko.bindingHandlers.wysihtml5 = {
init: function (element, valueAccessor, allBindingsAccessor, viewModel) {
var control = $(element).wysihtml5({
"events": {
"change" : function() {
var observable = valueAccessor();
observable(control.getValue());