Skip to content

Instantly share code, notes, and snippets.

View hackintoshrao's full-sized avatar
📚
Exploring AI agents on code search and understanding

Karthic Rao hackintoshrao

📚
Exploring AI agents on code search and understanding
View GitHub Profile
{"coord": { "lon": 139,"lat": 35},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01n"
}
],
"base": "stations",
{
"html_attributions" : [],
"next_page_token" : "CpQCAgEAAFxg8o-eU7_uKn7Yqjana-HQIx1hr5BrT4zBaEko29ANsXtp9mrqN0yrKWhf-y2PUpHRLQb1GT-mtxNcXou8TwkXhi1Jbk-ReY7oulyuvKSQrw1lgJElggGlo0d6indiH1U-tDwquw4tU_UXoQ_sj8OBo8XBUuWjuuFShqmLMP-0W59Vr6CaXdLrF8M3wFR4dUUhSf5UC4QCLaOMVP92lyh0OdtF_m_9Dt7lz-Wniod9zDrHeDsz_by570K3jL1VuDKTl_U1cJ0mzz_zDHGfOUf7VU1kVIs1WnM9SGvnm8YZURLTtMLMWx8-doGUE56Af_VfKjGDYW361OOIj9GmkyCFtaoCmTMIr5kgyeUSnB-IEhDlzujVrV6O9Mt7N4DagR6RGhT3g1viYLS4kO5YindU6dm3GIof1Q",
"results" : [
{
"geometry" : {
"location" : {
"lat" : -33.867217,
"lng" : 151.195939
}

Schema

type User {
    id: ID!
    user_name: String @search(by: [trigram, hash])
    user_handle: String @search(by: [hash])
    authored: [Tweet] @hasInverse(field: author)
}
@hackintoshrao
hackintoshrao / bsconfig.json
Last active February 1, 2020 02:46
Bsconfig.json
{
"name": "dgraph-reason",
"reason": { "react-jsx": 3 },
"bsc-flags": ["-bs-super-errors"],
"sources": [
{
"dir": "src",
"subdirs": true
}
],
@hackintoshrao
hackintoshrao / enable_gcp_api.sh
Created January 31, 2020 13:29
gloud command to enable APIs for installing Kubeflow
gcloud services enable compute.googleapis.com \
container.googleapis.com \
iam.googleapis.com \
deploymentmanager.googleapis.com \
cloudresourcemanager.googleapis.com \
file.googleapis.com \
ml.googleapis.com
@hackintoshrao
hackintoshrao / getting-started.md
Created January 8, 2020 22:40
7th tutorial of getting started WIP
title date image draft author tags
Getting started with Dgraph tutorials series - 7: Ecommerce product search
2019-12-11 06:30:00 +0530
tutorials/6/cover.jpg
false
karthic
tutorial
DevRel
@hackintoshrao
hackintoshrao / generate_fulltext_token.md
Last active July 31, 2020 19:32
Steps to generate Dgraphs fulltext index tokens
  1. Install Go

  2. Download Dgraph repo using go get

    go get -u github.com/dgraph-io/dgraph
    
  3. Go the tok package directory inside Dgraph's source.

@hackintoshrao
hackintoshrao / script.md
Created August 27, 2019 10:48
script for the talk

Let us write a query by using Dgraph’s has function. Has function returns all the nodes which has a particular predicate/property. Again, we already know that both the nodes which we just created, has got name predicate in them. So, let’s use the has function to query for all the nodes which has predicate name in it.

React notes

Understanding the live tracking app by Hasura

@hackintoshrao
hackintoshrao / 1.1.md
Last active August 16, 2019 17:04
progress so far with blog

Releasing Dgraph 1.1

Dgraph is a open source, transactional, distributed, native graph database. Ever since the internet explosion, the complexity, connectedness and the size of the data has been growing unprecedently. Dgraph is built as an effort to enable and simplify development of scalable cloud applications, even when the data is highly connected and complex.

The first production ready major release v1.0.0 happened in December 2017. Since then, the feedback from the community and customers has