Skip to content

Instantly share code, notes, and snippets.

View 2rohityadav's full-sized avatar
🌴
Working From Home

Rohit Kumar 2rohityadav

🌴
Working From Home
View GitHub Profile
@2rohityadav
2rohityadav / angular_bootstrap.md
Last active October 14, 2017 04:43
angular_bootstrap.md

Angular 4 with bootstrap 4 setup

Cmds

> ng new projects
> cd projects
> npm install bootstrap@4.0.0-beta tether jquery --save
> npm install --save popper.js angular-popper
> ng serve
@2rohityadav
2rohityadav / meteor-windows-installation.md
Last active April 3, 2018 11:44
meteor windows installation

H4 On some network or machine setups Meteor's installer for Windows may fail. In such cases, follow these simple steps to install Meteor manually:

  1. Install 7-Zip or any other program that knows how to extract tar.gz files.
  2. Download the installation archive from https://packages.meteor.com/bootstrap-link?arch=os.windows.x86_32.
  3. In a command prompt, run echo %LocalAppData%.meteor -- this is the directory in which Meteor should be installed.
  4. Extract the installation archive into the directory above.
  5. Add this directory to your PATH environment variable.( C:\Users<myusername>\AppData\Local.meteor\ )
  6. You should now be able to open a new command prompt and run meteor. Some versions of Windows may require restarting your machine first.
@2rohityadav
2rohityadav / webdev_online_resources.md
Created July 16, 2018 20:20 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@2rohityadav
2rohityadav / github_bitbucket_sameFolder.md
Last active April 2, 2020 06:06
Using Github & bitbucket in same folder

How to Use GitHub and BitBucket at the Same Time for One Project?

You can use multiple remote repositories with git. But you'll have to push separately into 2 of your remotes.

cd project

$ git remote add github https://github.com/your_user/your_repo.git

$ git remote add bitbucket https://your_user@bitbucket.org/your_user/your_repo.git

@2rohityadav
2rohityadav / imperative_declarative.md
Last active August 12, 2018 06:38
Imperative vs Declarative
// Imperattive (How - means not have trust that's y we telling how gonna execute things)
var numbers = [3,2,4,5]
var total = 0
for(var i=0; i< numbers.length; i++){
  total += numbers[i]
}
@2rohityadav
2rohityadav / sublime settings
Created August 31, 2018 16:59
sublime-settings.json
{
"font_face": "Fira Code",
"font_options":
[
"gray_antialias",
"subpixel_antialias",
"no_italic",
"no_bold"
],
"font_size": 11,
@2rohityadav
2rohityadav / Questions.md
Last active March 2, 2020 07:51
Questions - Javascript Coding

ChallengeQuestions

Lucky Palindrome / Social Circle

QUESTION 1

Lucky Palindrome

QUESTION DESCRIPTION

@2rohityadav
2rohityadav / Questions_2.md
Created October 8, 2018 17:16
Questions_2 - JavaScript Coding

Question #1

distinctpairs


Question #2

maximum difference in a array

@2rohityadav
2rohityadav / iterm2.md
Created August 30, 2019 07:23 — forked from squarism/iterm2.md
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@2rohityadav
2rohityadav / dashboard.js
Created October 19, 2019 20:11
dashboard
<template>
<section>
<h1>Dashboard</h1>
<h1 v-if="!user">Getting user information...</h1>
<h1 v-if="user">Hello, {{user.username}}!! 👋</h1>
<button @click="logout()" class="btn btn-primary">Logout</button>
<br />
<br />
<button @click="showForm = !showForm" class="btn btn-info">Toggle Form</button>
<form v-if="showForm" @submit.prevent="addNote()">