Skip to content

Instantly share code, notes, and snippets.

View sksundram's full-sized avatar
🎯
Looking for a job

Shailesh Kumar Sundram sksundram

🎯
Looking for a job
View GitHub Profile
@sksundram
sksundram / codeswing.json
Last active February 9, 2021 12:12
JavaScript Context (this) using arrow functions explained by Brad Schiff
{"scripts": [],"showConsole": true}
@sksundram
sksundram / codeswing.json
Last active February 9, 2021 12:04
JavaScript Context (this) explained by Brad Schiff
{"scripts": [],"showConsole": true}
@sksundram
sksundram / gist:c32e8c606fbc887a50baad3d7cc50661
Created September 10, 2019 17:10 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@sksundram
sksundram / git_real.md
Created September 9, 2019 13:52
Learn Git

1 - Basics

git help

git help config

git config --global user.name "Shailesh Kumar"

git config --global user.email "shailesh.sundram@gmail.com"

@sksundram
sksundram / sass-7-1-pattern.scss
Created August 25, 2019 02:02 — forked from rveitch/sass-7-1-pattern.scss
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel
## How to hide API keys from github ##
1. If you have already pushed commits with sensitive data, follow this guide to remove the sensitive info while
retaining your commits: https://help.github.com/articles/remove-sensitive-data/
2. In the terminal, create a config.js file and open it up:
touch config.js
atom config.js
@sksundram
sksundram / copy-a-javascript-array.md
Last active February 22, 2019 20:04
How to copy an array in JavaScript

Copy an array

const persons = [
  { id: 1, name: 'Shailesh', age: 29 },
  { id: 2, name: 'Prem', age: 37 },
  { id: 3, name: 'Mridula', age: 41 }
];

const copy1 = persons.slice();
@sksundram
sksundram / create-react-app-version-1.md
Last active February 22, 2019 20:05
create-react-app v1

create-react-app version 1.x

create-react-app my-app-name --scripts-version=react-scripts@1.x

@sksundram
sksundram / jquery-fcc.js
Created September 6, 2017 10:07
List of some jQuery functions scrapped from the jQuery tutorial on FCC
/* jQuery functions */
// ready function
$(document).ready(function() {
// put your code here
});
addClass()
$("#target4").addClass("animated bounce"); // selecting using id name