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 / Note.js
Created October 19, 2019 20:20
notes
<template>
<div>
<button @click="showForm = !showForm" class="btn btn-success">Toggle Form</button>
<form v-if="showForm" @submit.prevent="addNote()">
<fieldset>
<div class="form-group">
<label for="text">Title</label>
<input
type="text"
class="form-control"
@2rohityadav
2rohityadav / dashboard.js
Created October 19, 2019 20:18
dashboard js - with note
<template>
<div class="dashboard jumbotron">
<h1>Dashboard !</h1>
<h5 v-if="!user">Getting info...</h5>
<p class="username" v-if="user">Hello {{user.username}} 👋 </p>
<button @click="logout()" type="submit" class="btn btn-primary">Logout</button>
<!-- Notes component <begin> -->
<Notes />
<!-- Notes component </end> -->
@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()">
@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()">
@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 / 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 / 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 / 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 / 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 / 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://[email protected]/your_user/your_repo.git