Skip to content

Instantly share code, notes, and snippets.

View kaushik94's full-sized avatar
🎉
Partying

Kaushik Varanasi kaushik94

🎉
Partying
View GitHub Profile
Hey tailwind team,
I have been a developer for the past 10 years. I was selected for the Google Summer of Code program where I started seriously open-sourcing.
Since then I have built and open-sourced many applications and libraries primarily in React, Javascript and Python.
I am passionate about Tailwind and have been using it in every project of mine.
Most recently I built Rocketgraph(https://rocketgraph.io/) using Next.js. It's a backend as a service product that let's developers build web applications in minutes.
I have gained solid design principles working at companies like Hackerrank(YC) among others. I am also passionate about building products outside of my work and open-sourcing them. This passion is what brings that extra edge to my performance.
I'd love to contribute to the Tailwind library that many other developers and I use on a daily basis.
@kaushik94
kaushik94 / insert_user_id.sql
Created August 10, 2023 21:34
SQL Trigger to pre-insert user_id into message
CREATE FUNCTION insert_user_id()
RETURNS trigger AS $BODY$
BEGIN
SELECT id INTO NEW.to_id FROM users WHERE email = NEW.to_email;
RETURN NEW;
END;
$BODY$ LANGUAGE plpgsql;
CREATE TRIGGER insert_article BEFORE INSERT OR UPDATE ON messages FOR EACH ROW EXECUTE PROCEDURE insert_user_id();
@kaushik94
kaushik94 / gist:16e57a53bf63fb83c665fd4c5dc24bf5
Created July 7, 2022 01:03 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@kaushik94
kaushik94 / index.js
Created September 25, 2021 18:02
Create todos app - configure
// src/index.js
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import { NhostApolloProvider } from "@nhost/react-apollo";
ReactDOM.render(
<React.StrictMode>
<NhostApolloProvider gqlEndpoint="https://hasura-xxx.nhost.app/v1/graphql">
<App />
#include <stdio.h>
#include <string.h>
#define MIN(a,b) (((a)<(b))?(a):(b))
int getBit(long long int s, int i) {
return (s >> i) & 1;
}
long long int clearBit(long long int s, int i) {
s ^= 1 << i;
strings = ['I', 'am', 'the', 'laziest', 'person', 'in', 'the', 'world' ]
s = ''
s.join(strings)
strings = ['I', 'am', 'the', 'laziest', 'person', 'in', 'the', 'world' ]
s = ""
for string in strings:
s = s+string
print(s)
@kaushik94
kaushik94 / gist:b339b1ebe1eb5f3ccff958e20287b529
Created January 25, 2019 09:13 — forked from mattfelsen/gist:9467420
Splitting strings by a delimiter for Arduino
//
// This is tested and works!
//
String input = "123,456";
int firstVal, secondVal;
for (int i = 0; i < input.length(); i++) {
if (input.substring(i, i+1) == ",") {
firstVal = input.substring(0, i).toInt();
secondVal = input.substring(i+1).toInt();
@kaushik94
kaushik94 / .mongorc.js
Created March 20, 2018 20:06 — forked from yanatan16/.mongorc.js
My .mongorc.js file
(function () {
rcversion = '1.0';
load('underscore.min.js')
// NOTES
// Basics, wrap the whole thing in a function
// Set a version for sanity's sake
// Load underscore, a must in any javascript environment
@kaushik94
kaushik94 / git-deployment.md
Created March 5, 2018 23:28 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.