Skip to content

Instantly share code, notes, and snippets.

View underworld14's full-sized avatar
🎯
Focusing

Yusril Izza Aulia underworld14

🎯
Focusing
  • SoftwareSeni
  • Blitar, East Java
  • 21:36 (UTC +07:00)
View GitHub Profile
@underworld14
underworld14 / Setup eslint & prettier.md
Last active July 7, 2021 13:27
Setup Eslint and Prettier in Typescript project.

Using ESLint and Prettier in a TypeScript Project

Setup Eslint

yarn add eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin --dev

Create eslint configuration file

"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint . --ext .js,.ts,.tsx",
"lint:fix": "eslint . --ext .js,.ts,.tsx --fix",
"prettier": "prettier --check '*/**/*.{js,ts,tsx}'",
"prettier:fix": "prettier --write '*/**/*.{js,ts,tsx}'"
},
@underworld14
underworld14 / homework.sql
Last active January 22, 2021 09:10
Final Home Work SQL for Alan Fayed
-- Explain the concepts of Entity and Attribute
-- In the relational data model, an entity is represented as a record in an entity set. In the relational data model, a field represents an attribute.
-- ref : https://binaryterms.com/difference-between-entity-and-attribute-in-database.html#:~:text=An%20entity%20is%20a%20distinguishable,a%20field%20represents%20an%20attribute.
-- Give examples representing multivalued and derived attribute
-- multivalued attribute : An attribute that can have multiple values for an entity. for Example User entity in an ecommerce have attributes email, password, phone, and address. The address attributes may have multiple value, because a user may have multiple address.
-- derived attribute : An attribute that can be derived from another attribute, for Example age attribute can be delivered from birthdate attribute.
-- ref : https://pctechnicalpro.blogspot.com/2017/04/types-of-attributes-in-dbms-with-example.html
-- CREATING EMPLOYEES :