Skip to content

Instantly share code, notes, and snippets.

View bbrt3's full-sized avatar
🤑

Hubert Kłonowski bbrt3

🤑
View GitHub Profile
@bbrt3
bbrt3 / BEM---bem.css
Last active August 11, 2021 16:43
CSS
/*
Block-Element-Modifier (BEM) is a popular naming convention created to help developers understand
the relationship between the HTML and CSS in a given project.
BLOCK is a top-level abstraction of a new component.
We can think of it as parent.
ELEMENTS can be placed inside BLOCKS and are denoted by two underscores (__).
We can think of them as children.
/*
DROP
It will delete all data and the table structure as well.
Those are auto-commited statements, no rolling back!
DELETE
It will delete the data but table structure will remain the same
and we can still rollback the data.
It also allows us to use WHERE to only delete some data.
*/
/*
==
It converts the variable values to the same type
before performing comparsion (TYPE COERCION).
It means that if two values are not the same type,
== will convert them to the same type and return true.
===
It doesn't convert the variable values to the same type
before performing comparsion (TYPE COERCION).
@bbrt3
bbrt3 / echo.ps
Last active August 11, 2021 17:20
Powershell
echo "LETS GO!!"
echo is actually an alias for Write-Host in powershell.
Write-Output - success Output
Write-Host - writing to console
Write-Debug - for debugging
@bbrt3
bbrt3 / RxJs---observables.ts
Last active August 11, 2021 17:28
TypeScript
/*
Observables are a representation of any set of values
over any amount of time.
*/
import {map, tap} from '@rxjs/operators'
getOldBookById(id: number): Observable<OldBook>{
return this.http.get<Book>(`/api/books/${id}`)
.pipe(
PRODUCT VISION
PRODUCT BACKLOG
SPRINT BACKLOG
RELEASE PLAN
SPRINT BURNDOWN CHART
IMPEDIMENT LIST
@bbrt3
bbrt3 / fundamentals.cs
Last active August 11, 2021 18:05
REST
/*
REST (Representational State Transfer)
.
It is an architectural style of distributed system.
It is based upon the set of principles that describes
how network resources are defined and addressed.
There are 39 total HTTP verbs.
Continous Delivery (CD) is the process to build, test, configure
and deploy from a build to a production environment.
Multiple testing or staging environments create a Release Pipeline
to automate the creation of infrastructure and deployment of a new build.
Anytime there is a new build artifact available,
it is automatically placed in the desired environment
and deployed.
@bbrt3
bbrt3 / smokeTests.txt
Last active August 11, 2021 18:25
Testing
It is software testing process that determines whether
the deployed software build is stable or not.
Smooke testing is a confirmation for QA team to proceed with
further software testing.
It is also known as Build Verification Testing or Confidence Testing.
We are checking if code is not on fire :D
@bbrt3
bbrt3 / abstraction.cs
Last active August 14, 2021 11:05
OOP
/*
Abstraction means to simplify reality.
Example:
Person is an object, but if we were designing application
to process data about a person, then it's unlikely
that we will be interested in everything there is to know
about a person.
Rather you would only concern yourself with the relevant data
and task that we want to perform on that data.