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.
local ret_status="%(?:%{$fg_bold[green]%}🤖 :%{$fg_bold[red]%}💩 )"
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}[%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}] %{$fg[yellow]%}😡 "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%}] 😇 "
@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 />
@kaushik94
kaushik94 / dictionary.py
Created September 2, 2015 10:19
reversing a dictionary
def reverseDict(somedict):
newdict = {}
for each in somedict:
for one in somedict[each]:
newdict[one] = each
return newdict
something = {'Bob':['Harry','Jenkins', 'Onion', 'Fred', 'Earl', 'Sam'],
'Wayne':['Wallace', 'David', 'Eel', 'Perkins', 'Fruit', 'Angela'],
'Jeff':['Aaron', 'Cameron', 'Keith', 'Winston', 'Geoff', 'Wayne']
#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();