Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Anoob Bava anoobbava

🎯
Focusing
Block or report user

Report or block anoobbava

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@anoobbava
anoobbava / Login.vue
Created Sep 13, 2019
login vue file for blogging
View Login.vue
<template>
<v-container
class="fill-height"
fluid
>
<v-row
align="center"
justify="center"
>
<v-col
@anoobbava
anoobbava / NavBar.vue
Created Sep 13, 2019
Navbar vue for blogging
View NavBar.vue
<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 Jul 9, 2019
github Graphql vue
View toolBar.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 Jul 9, 2019
github graphql Search vue
View 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 Jul 9, 2019
TrendingRepo component
View TrendingRepo.vue
//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
View trendingRepoDetailsQuery.js
//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 Jul 9, 2019
to display home page in the github graphql file
View Home.vue
//path: src/views/Home.vue
<template>
<TrendingRepo :searchString="homeSearchString"/>
</template>
<script>
import TrendingRepo from '../components/TrendingRepo'
export default {
data () {
@anoobbava
anoobbava / .zshrc
Last active May 3, 2019
Web development guide tools
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/sarath/.oh-my-zsh"
export PATH="$(brew --prefix qt@5.5)/bin:$PATH"
# 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
View rspec_cheatsheet_controller_spec.rb
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
View NavBar.vue
<template>
<!-- display the navigation bar -->
<v-toolbar>
<v-toolbar-items>
<v-btn
flat
tag='span'
style='cursor: pointer'
>
SHOW CASE
You can’t perform that action at this time.