Skip to content

Instantly share code, notes, and snippets.

View tlakomy's full-sized avatar
🤠
Building https://cloudash.dev

Tomasz Łakomy tlakomy

🤠
Building https://cloudash.dev
View GitHub Profile
@tlakomy
tlakomy / Production Ready Serverless notes.md
Last active January 10, 2022 01:06
Notes from Production Ready Serverless course with theburningmonk

Week 01

Lambda 101:

  • You can pin frequently used services to top bar in AWS Console
  • By default there's a limit of 1000 concurrent lambda executions, this can be raised with a support ticket. There are companies that have this limit raised up to tens of thousands concurrent lambda executions.
  • By default you get 75GB of code storage (so up to 10 React apps, lol) which can also be raised
  • Looking at Throttles graph is useful, we don't want our functions to be throttled
  • ConcurrentExecutions graph is useful as well - to understand if we're not approaching a limit
  • You can search for lambda functions using function name (adding prefixed help!) or using tags, which are really useful
  • It's possible to use custom runtimes for Lambda (apart from Node,.NET, Python etc.) so if you really want to use Haskell you can do that
@tlakomy
tlakomy / kredyt.md
Created April 24, 2020 12:22
Kredyt - info

Oprocentowanie dla stalych klientow - Millennium

  • 3,17% oprocentowanie

  • 3,72% RRSO

  • rata 1949zl na 20 lat

  • dodatkowo 33zl ubezpieczenie mieszkania

  • dodatkowo 69zl na zycie

@tlakomy
tlakomy / Nik Graf Workshop notes.md
Last active March 7, 2020 12:42
Nik Graf Workshop notes
@tlakomy
tlakomy / Egghead AWS CDK Workshop Rough Plan.markdown
Last active March 4, 2021 01:26
Egghead AWS CDK Workshop Rough Plan

Egghead AWS CDK Workshop Rough Plan:

Pre-workshop:

Create an AWS account, install AWS CLI, AWS CDK, AWS SAM (including Docker) and configure your account

Hide node_modules, **/*.d.ts and **/lesson*/**/*.js files in VSCode using Exclude option in Settings

Note - check the cdk-spa-deploy version before the workshop because if there's a version mismatch it won't work

@tlakomy
tlakomy / Notes.md
Last active January 13, 2020 21:40
Notes from Build an App with React Suspense, Hooks, and Context Workshop Setup with Michael Chan

Egghead Workshop Notes

Notes from Build an App with React Suspense, Hooks, and Context Workshop Setup with Michael Chan

  • Write a detailed README with contact info, info about the workshop itself, license etc
  • Create a folder for each lesson so folks won’t have to struggle with switching git branches every 15 minutes
  • Give everyone a minute to process what they’ve learned and to figure out whether they have questions
  • Reference the docs so once the workshop concludes everyone knows where to find the resources to refresh what they’ve learned
  • As with egghead lessons, guide their eyes - if you’re explaining something, then select it in your IDE (at least hover over it)
  • Take a minute to go over the questions from the chat, read the question out loud
  • Don’t be afraid to experiment when there’s an interesting question, we’re all nerds here who love to try out new stuff
@tlakomy
tlakomy / index.html
Created October 11, 2018 18:11
Egghead.io "Create a gradient with a Sass loop" - end state
<!DOCTYPE html>
<html>
<head><link rel="stylesheet" href="css/main.css"></head>
<body>
<div class="block1">hello</div>
<div class="block2">hello</div>
<div class="block3">hello</div>
<div class="block4">hello</div>
<div class="block5">hello</div>
<div class="block6">hello</div>
@tlakomy
tlakomy / index.html
Created October 11, 2018 18:09
Egghead.io "Create a gradient with a Sass loop" - start state
<!DOCTYPE html>
<html>
<head><link rel="stylesheet" href="css/main.css"></head>
<body>
</body>
</html>
import React from 'react';
const MyComponent = () => (
<h1>Hello, Egghead!</h1>
);
export default MyComponent;
@tlakomy
tlakomy / jQuery>React.markdown
Last active August 17, 2022 12:08
Let's not forget about jQuery

In this talk I'd like to use 5 minutes of my time to explain to the audience why jQuery is simply way better than React.

  • Does React have a fadeIn() method? Nah, I don't think so. You need to install a react-transition-group package which weighs over 3GB.
  • Can you do $.get(https://stackoverflow.com/questions/12345/adding_two_numbers_javascript) in React? NOPE.
  • Remember React 3.3.1? Me neither, because they didn't make it. Meanwhile in jQuery land: https://code.jquery.com/jquery-3.3.1.min.js
  • Can you learn jQuery for free? Sure! Can you learn React for free? It'll be $500 USD and your left kidney for a conference ticket.

And many, many more.

(This is a completely serious lightning talk proposal, I promise.)

@tlakomy
tlakomy / gist:71153238662af3781732a0ff82597058
Created April 26, 2017 19:41
MouseEvent instead of DOMEvent
frontend/Draggable.js:18
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `preventDefault` incompatible with invariant use in
44: onMove(evt: DOMEvent) {
^^^^^^^^ object type
frontend/Draggable.js:18
18: _onMove: (evt: MouseEvent) => void;
^^^^^^^^^^ Event. Covariant property `stopPropagation` incompatible with invariant use in
44: onMove(evt: DOMEvent) {