Skip to content

Instantly share code, notes, and snippets.

View anoobbava's full-sized avatar
🎯
Focusing

Anoob Bava anoobbava

🎯
Focusing
View GitHub Profile
@anoobbava
anoobbava / Login.vue
Created September 13, 2019 10:54
login vue file for blogging
<template>
<v-container
class="fill-height"
fluid
>
<v-row
align="center"
justify="center"
>
<v-col
@anoobbava
anoobbava / NavBar.vue
Created September 13, 2019 10:46
Navbar vue for blogging
<template>
<div>
<v-toolbar dark>
<v-toolbar-title
@click="redirectToHome">My todos
</v-toolbar-title>
<div class="flex-grow-1"></div>
<v-toolbar-items>
<v-btn text>Add Todo</v-btn>
@anoobbava
anoobbava / toolBar.vue
Created July 9, 2019 09:17
github Graphql vue
path: src/components/toolBar.vue
<template>
<v-toolbar dark color="primary">
<v-toolbar-title class="white--text">
<v-btn @click="redirectToHome" icon>
<v-icon medium>home</v-icon>
</v-btn>GitHub Graphql
</v-toolbar-title>
<v-spacer></v-spacer>
@anoobbava
anoobbava / Search.vue
Created July 9, 2019 09:16
github graphql Search vue
path: src/views/Search.vue
<template>
<TrendingRepo :searchString="language"/>
</template>
<script>
import TrendingRepo from '../components/TrendingRepo'
export default {
@anoobbava
anoobbava / TrendingRepo.vue
Last active July 9, 2019 07:09
TrendingRepo component
//src/components/TrendingRepo.vue
<template>
<v-container grid-list-md text-xs-center>
<div v-if="$apollo.loading">
<v-progress-circular
:size="70"
:width="7"
color="primary"
indeterminate
@anoobbava
anoobbava / trendingRepoDetailsQuery.js
Created July 9, 2019 06:54
blog for github graphql
//src/queries/trendingRepoDetailsQuery.js
import gql from 'graphql-tag'
export const TRENDING_REPO_DETAILS_QUERY = gql`
query SearchMostTop10Star($queryString: String!) {
search(query: $queryString, type: REPOSITORY, first: 40) {
edges {
node {
... on Repository {
owner {
@anoobbava
anoobbava / Home.vue
Last active July 9, 2019 06:49
to display home page in the github graphql file
//path: src/views/Home.vue
<template>
<TrendingRepo :searchString="homeSearchString"/>
</template>
<script>
import TrendingRepo from '../components/TrendingRepo'
export default {
data () {
@anoobbava
anoobbava / .zshrc
Last active February 24, 2020 12:41
Web development guide tools
export ZSH="/home/anoob/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
require 'rails_helper'
RSpec.describe TodosController, :type => :controller do
describe "GET #index" do
#describe "POST #create" do
#describe "GET #show" do
#describe "PATCH #update" do (or PUT #update)
#describe "DELETE #destroy" do
#describe "GET #new" do
@anoobbava
anoobbava / NavBar.vue
Created March 16, 2019 10:35
for blog
<template>
<!-- display the navigation bar -->
<v-toolbar>
<v-toolbar-items>
<v-btn
flat
tag='span'
style='cursor: pointer'
>
SHOW CASE