Skip to content

Instantly share code, notes, and snippets.

일본어 블로그 아티클의 @young의 번역글 입니다. 의역이 포함되어 있습니다.


"SwiftUI에서 MVVM 사용을 멈추자"라고 생각이 들었던 이유

선언적인 UI에서, MVVM이 불필요한 이유는?

import {
NestInterceptor,
ExecutionContext,
Injectable,
CallHandler,
} from '@nestjs/common';
import { classToPlain } from 'class-transformer';
import { map } from 'rxjs/operators';
@Injectable()
@arielweinberger
arielweinberger / strong-password-regex.md
Last active June 12, 2024 09:45
Strong password Regular Expression - NestJS Course
  • Passwords will contain at least 1 upper case letter
  • Passwords will contain at least 1 lower case letter
  • Passwords will contain at least 1 number or special character
  • There is no length validation (min, max) in this regex!

Regular expression for JavaScript:

/((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/
@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active July 1, 2024 08:25
AWS 공인 개발자 - 어소시에이트 수험 가이드
@paulirish
paulirish / what-forces-layout.md
Last active July 27, 2024 23:38
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@danmartin
danmartin / screen.scss
Created December 10, 2012 16:40
Sass Breakpoints Mixin
@mixin breakpoint($point) {
@if $point == sm-max {
@media (max-width: 460px) { @content; }
}
@else if $point == md-max {
@media (max-width: 800px) { @content; }
}
@else if $point == lg-max {
@media (max-width: 1024px) { @content; }
}