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
@hackintoshrao
hackintoshrao / test.graphql
Created September 23, 2021 15:19
test graphql queries
query {
author {
id
name
}
}
true == []; // -> false
true == ![]; // -> false
false == []; // -> true
false == ![]; // -> true
const response = await fetch('https://example.com/movies.json');
const data = await response.json();
// Remember: Astro component scripts log to the CLI
console.log(data);
---
<!-- Output the result to the page -->
<div>{JSON.stringify(data)}</div>
const core = require('@actions/core');
const github = require('@actions/github');
try {
// `who-to-greet` input defined in action metadata file
const nameToGreet = core.getInput('who-to-greet');
console.log(`Hello ${nameToGreet}!`);
const time = (new Date()).toTimeString();
core.setOutput("time", time);
// Get the JSON webhook payload for the event that triggered the workflow
import React from "react";
import ReactDOM from "react-dom";
const Hello = function(name) {
return (
<div>Hello, {name}</div>
);
};
const view = Hello("Will");
@hackintoshrao
hackintoshrao / hello_lambda.js
Created July 16, 2021 14:10
AWS Lambda Hello World
exports.handler = async (event) => {
// TODO implement
const response = {
statusCode: 200,
body: JSON.stringify('Hello from Lambda!'),
};
return response;
};
@hackintoshrao
hackintoshrao / tf_basics.py
Created December 22, 2020 12:33
Tensorflow basics
import tensorflow as tf
x = tf.constant([1,2,3,4,5])
y = tf.constant([1,1,1,1,1])
a = tf.add(x,y)
print(a)
@hackintoshrao
hackintoshrao / numpy.py
Created November 13, 2020 08:53
numpy tset
import numpy as np
arr = np.array([1, 2, 3, 4, 5])
print(arr)
print(type(arr))
## Docs

- Added tutorials from Getting Started series to the docs site
- Adding instructions to use helm chart to docs https://github.com/dgraph-io/dgraph/pull/4337
- Adding instructions to publish helm chart using Chart-Releaser https://github.com/dgraph-io/charts/pull/4
- Obtain unique results by using variables https://github.com/dgraph-io/dgraph/pull/4131
- List of valid predicate names https://github.com/dgraph-io/dgraph/pull/4186
{
"api_status": {
"request": {
"item": "es"
},
"reply": {
"cache": "renewed",
"code": 200,
"status": "ok",
"note": "The api works, we could match requested country code.",