Skip to content

Instantly share code, notes, and snippets.

@cangoektas
cangoektas / foo.tldr
Created February 21, 2022 16:50
tldraw app crash
{
"name": "New Document",
"fileHandle": null,
"document": {
"id": "doc",
"name": "New Document",
"version": 15.3,
"pages": {
"page": {
"id": "page",
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
margin: 0;
}
@cangoektas
cangoektas / comparison.md
Last active November 10, 2018 01:21
Core rule settings of popular ESLint configs

Core rule settings of popular ESLint configs

An overview of how popular ESLint configs use the latest core rules. The rules are listed in the order they appear on the ESLint rules page: https://eslint.org/docs/rules/.

Configs

Name Weekly NPM Downloads
eslint:recommended (installed with ESLint)
airbnb         699,637          
module.exports.hello = (event, context, callback) => {
console.log("Hello, world!");
callback(null);
};
service: my-service
provider:
name: aws
region: eu-central-1
runtime: nodejs6.10
functions:
hello:
handler: handler.hello
events:
- schedule:
START RequestId: 1b2cc533-a86d-11e7-a3f3-5ba627dcc6d6 Version: $LATEST
2017-10-03 21:00:22.173 (+02:00) 1b2cc533-a86d-11e7-a3f3-5ba627dcc6d6 Hello, world!
END RequestId: 1b2cc533-a86d-11e7-a3f3-5ba627dcc6d6
REPORT RequestId: 1b2cc533-a86d-11e7-a3f3-5ba627dcc6d6 Duration: 2.50 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 20 MB
AWSTemplateFormatVersion: '2010-09-09'
Resources:
LambdaBasicExecutionRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
AWSTemplateFormatVersion: '2010-09-09'
Resources:
LambdaFunctionsBucket:
Type: AWS::S3::Bucket
Properties:
BucketName: unique-bucket-name-1234
DeletionPolicy: Retain