Skip to content

Instantly share code, notes, and snippets.

View dmcshehan's full-sized avatar
👋

Shehan Disanayake dmcshehan

👋
View GitHub Profile

CSS


What is CSS?

  • CSS stands for Cascading Style Sheet.
  • Styles define how to display HTML elements
  • Styles were added to HTML 4.0 to solve a problem
  • External Style Sheets can save a lot of work
  • External Style Sheets are stored in CSS files
@dmcshehan
dmcshehan / React-context.md
Created May 19, 2020 05:34
How to use React Context

Context

Better to create the Context instance in a seperate file.

//MyContext.js

import {React} from 'react';

const MyContext = React.createContext({});
@dmcshehan
dmcshehan / photoshop_kbscuts.md
Created April 27, 2020 01:18
Photoshop CC2018 Keyboard Shortcuts

Photoshop Shortcuts CC 2018

Shortcut Description
b Select Brush tool
z Select Zoom tool
x Switch colors
Ctrl + z Go back and forth (One step backward and one step forward)
Ctrl + Alt + z Go back several steps
@dmcshehan
dmcshehan / yarn-commands.md
Created April 21, 2020 11:57
Yarn Commands

Useful yarn commands all in one place

I recently watched yarn crash course by Traversy Media on YouTube and though of listing all the commands in that video. lodash and nodemon packages are taken as examples. Enjoy 😃

Description Command
Set config $ yarn config set init-license MIT
Get config $ yarn config get init-license
Delete config $ yarn config delete init-license
Install a package $ yarn add lodash
@dmcshehan
dmcshehan / all-mongodb-commands.md
Last active May 19, 2020 05:36
All basic mongoDB commands at one place.

Show All Created Databases

show dbs

Starte using the database named dbname

 use dbname