Skip to content

Instantly share code, notes, and snippets.

View zerothabhishek's full-sized avatar

Abhishek Yadav zerothabhishek

View GitHub Profile
@zerothabhishek
zerothabhishek / workshop-prep.md
Last active July 5, 2024 13:07
Prep: Building AI Agents with RAG and Function Calling

The workshop: https://lu.ma/6lrnyo1b
Please bring your own laptops.

Tech/Tools to be used: Nextjs, Supabase, OpenAI
Discussions: Discord

What we'll build

An RAG application which can ingest and search through a given documentation and answers questions. The app will be a chat UI that will use the Marvel Universe wiki as data source.

const WebSocket = require('ws');
const URL = "ws://ws.example.org:8080/cable"
const ORIGIN = "https://example.org"
function connect(label) {
const ws = new WebSocket(URL, [], { origin: ORIGIN })
ws.on('open', function open() {
@zerothabhishek
zerothabhishek / job-react-native-1.js
Last active July 10, 2018 08:41
React native at Calliope
{
title: "React Native developer",
location: "Anywhere",
experience: "2 years",
frameworks: "React Native",
freelance_ok: "Yes",
hours_per_week: 40, // full time
company: "https://www.calliope.consulting",
contact_person: "[email protected]",
job_description: "Hiring lead React Native developer for a US based startup",
@zerothabhishek
zerothabhishek / chennai-js-job-template.js
Last active June 20, 2018 07:35
Chennai-js Job template
{
title: "Javascript developer",
location: "Chennai",
experience: "3 years",
frameworks: "Angular",
freelance_ok: "Yes",
hours_per_week: 10, // in case of freelance
company: "Awesome co",
contact_person: "[email protected]",
job_description: "https://awesome-co.in/jobs/123", //link or details

Questions to ask potential employers

  • How long do you expect it would take me to deploy my first change? To become productive? To understand the codebase?
  • What kind of equipment will I be provided? Will the company pay/reimburse me if I want something specific?
  • What's the longest tenure of a developer at this company?
  • How long has the top quarter of the developers been here?
  • What fraction of the developers have been here less than 6 months?
  • How long does it take to do a complete deployment?
  • How large are PRs? For a "big" PR, how many lines of code? How long is it open?
  • About what fraction of their time are developers given (implicitly or explicitly) the freedom to explore?
@zerothabhishek
zerothabhishek / talk-topics.md
Last active February 7, 2020 21:17
Javascript talk topics
  • Javascript async/await
  • ES7 - whats new
  • ES6 module system
  • ES6 generators
  • Fundamentals of this
  • Webpack - whats new in v4
  • Webpack - alternatives like parcel
  • Webpack - tips and tricks
  • Vue-js introduction
@zerothabhishek
zerothabhishek / Job | Ionic-React Native Freelancer
Last active July 10, 2017 04:59
Job-post | Ionic/React Native Freelancer
I am looking for someone who can develop application using Ionic/React Native,
I am looking for a full time freelancer who could deliver work with in 15 or 20 days maximum.
Required skills
- Should have developed atleast 5 applications using Ionic/React Native
- Should be able to refine the UI screens,
- Should have exposure to security standards.
- Should write test cases and test the application throughly.
- Good to have knowledge in cloud servers like AWS.
@zerothabhishek
zerothabhishek / how-to-reach-1.md
Last active July 1, 2017 06:43
How to Reach: Real Image Media

Address:

Real Image Media Technologies
42, Dr Ranga Rd, Marwadi Thottam, Narasimahapuram, Chennai

Map: google-map

Nearby train stations: Thirumailai MRTS, Mandaveli MRTS
Nearby bus stops: Luz corner, Eldam Road
Landmarks: Kritilals Jwellery, Nageshware Rao park

#!/bin/sh
#
# init.d script for single or multiple unicorn installations. Expects at least one .conf
# file in /etc/unicorn
#
# Modified by [email protected] http://github.com/jaygooby
# based on http://gist.github.com/308216 by http://github.com/mguterl
#
## A sample /etc/unicorn/my_app.conf
##
@zerothabhishek
zerothabhishek / distance.sql
Created February 12, 2017 10:59 — forked from aramonc/distance.sql
MySQL function to calculate the distance between two coordinates using the Haversine formula. Leaving it here for future reference.
DELIMITER $$
CREATE FUNCTION `haversine` (lat1 DECIMAL(8,6), lng1 DECIMAL(8,6), lat2 DECIMAL(8,6), lng2 DECIMAL(8,6)) RETURNS DECIMAL(8,6)
BEGIN
DECLARE R INT;
DECLARE dLat DECIMAL(30,15);
DECLARE dLng DECIMAL(30,15);
DECLARE a1 DECIMAL(30,15);
DECLARE a2 DECIMAL(30,15);
DECLARE a DECIMAL(30,15);
DECLARE c DECIMAL(30,15);