Skip to content

Instantly share code, notes, and snippets.

View AbhishekChourasiya's full-sized avatar
💭
learning

Abhishek Chourasiya AbhishekChourasiya

💭
learning
View GitHub Profile
@AbhishekChourasiya
AbhishekChourasiya / microgpt.py
Created February 13, 2026 10:48 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@AbhishekChourasiya
AbhishekChourasiya / thankyou.py
Created July 12, 2018 05:59 — forked from naiquevin/thankyou.py
Python script to thank people who sent birthday wishes on facebook
import sys
from urllib import urlencode
import requests
from urlparse import urlparse, parse_qs
from random import choice
import re
self_id = None # your facebook id here
utc_bday = None # utc timestamp of your birthday
@AbhishekChourasiya
AbhishekChourasiya / smartprix_1.cpp
Created August 30, 2017 17:16 — forked from mangalvikas/smartprix_1.cpp
asked in smartprix implement prototype for notepad, smartprix coding round, text editor utility
#include <bits/stdc++.h>
using namespace std;
char upper(char a){
if(a >= 97 && a<= 122){
return (char)((int)a-32);
}
return a;
}
int main() {
string s="",t;
@AbhishekChourasiya
AbhishekChourasiya / smartprix_2.cpp
Created August 30, 2017 17:16 — forked from mangalvikas/smartprix_2.cpp
asked in smartprix implement a code which will take input as assembly code and ouput a the expected output of that code,smartprix coding round,assembly language output generater
#include<bits/stdc++.h>
using namespace std;
map<string,int>var;
void sett(string s,string ss){
if(var.find(ss) != var.end()){
var[s]=var[ss];
}else if(ss[0]>=48 && ss[0]<=57){
var[s]=stoi(ss);
}else{
var[s]=0;
@AbhishekChourasiya
AbhishekChourasiya / interviewitems.MD
Created May 14, 2017 17:35 — forked from KWMalik/interviewitems.MD
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go