Skip to content

Instantly share code, notes, and snippets.

View kevinslin's full-sized avatar

Kevin Lin kevinslin

View GitHub Profile
@kevinslin
kevinslin / publish.yml
Last active October 19, 2021 22:54
publish.yml
name: Dendron
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
@kevinslin
kevinslin / keybindings.json
Last active May 10, 2023 01:32
Kevin's VSCode Keybindings
// Place your key bindings in this file to override the defaults
[
// The following are Kevin's keybindings for VSCode
// They are made available under CC BY 4.0
//
// To navigate
// `==` denote sections
// `---` denotes subsections
//
// == Dendron
version: 1
schemas:
- id: pro
desc: project
parent: root
namespace: true
template:
id: pro.template
type: note
children:
version: 1
schemas:
- id: lang
title: language
desc: programming language
parent: root
pattern: l
data:
namespace: true
children:

Synopsis

tar [bundle-flags <args] [<file> | <pattern> ...]

Options

  • -c: create new archive
  • -d: find difference bwt files in the archive
  • -v: verbose
@kevinslin
kevinslin / journal.schema.yml
Created August 23, 2020 03:59
Schema Examples
# schema for journals
# the following schema will match the follwoing
#
# journal
# journal.2020
# journal.2020.09
# journal.2020.09.12
# journal.2020.09.12.foo.md
version: 1
@kevinslin
kevinslin / CLA.md
Last active July 21, 2022 21:05
CLA for Dendron

Contribution License Agreement

This Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”), and conveys certain intellectual property and license rights to Dendron Inc. and its affiliates (“Dendron”) for Your contributions to Dendron open source projects. This Agreement is effective as of the latest signature date below.

1. Definitions.

“Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Dendron under this Agreement.

“Project” means any of the projects owned or managed by Dendron in which software is offered under a license approved by the Open Source Initiative (OSI) (www.opensource.org) and documentation offered under an OSI or a Creative Commons license (https://creativecommons.org/licenses).

@kevinslin
kevinslin / test
Created April 27, 2020 20:55
test
This is a test git
@kevinslin
kevinslin / Bucket.ts
Created August 7, 2019 16:47
generated bucket definition file
export declare class CfnBucket extends cdk.CfnResource {
/**
* The CloudFormation resource type name for this resource class.
*/
static readonly CFN_RESOURCE_TYPE_NAME = "AWS::S3::Bucket";
/**
* @cloudformationAttribute Arn
*/
readonly attrArn: string;
@kevinslin
kevinslin / bucketNotification.ts
Last active August 5, 2019 18:51
Example of bucket notifications in CDK
const bucket = new Bucket(this, 'fooBucket');
const fn = new lambda.Function(this, 'fooFunc', {
runtime: lambda.Runtime.NODEJS_10_X,
handler: 'lambda.handler',
code: lambda.Code.asset('functions/fooFunc'),
timeout: Duration.seconds(60)
});
bucket.addEventNotification(