Skip to content

Instantly share code, notes, and snippets.

View nkpgardose's full-sized avatar
🖥️
Dev life

Neil Gardose nkpgardose

🖥️
Dev life
View GitHub Profile
.list {
  background-color: red;

  & .list-item {
    color: white;
    
    & .list-item-icon {
      margin-right: 5px;
 }
@nkpgardose
nkpgardose / syncing-cool.md
Created July 6, 2016 02:12
Syncing your forked repository from the orignal repository
  1. To sync your repository, first you must have a pointer from the original repository. Let's call it upstream
$ git remote -v # List all remote repository from your fork
$ git remote add upstream [https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git]

Let us say the original repository is https://github.com/google/material-design-lite

  1. Next, fetch the upstream branch
$ git fetch upstream
{
"extends": [
"next/core-web-vitals",
"plugin:jsx-a11y/recommended",
"plugin:react/recommended",
"prettier"
],
"plugins": [ "prettier", "jsx-a11y" ],
"rules": {
"prettier/prettier": [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const a: number[] = [];
function time(fn: () => void): number {
const now = Date.now();
fn();
return Date.now() - now;
}
function unshift(number: number) {