Skip to content

Instantly share code, notes, and snippets.

View iamsainikhil's full-sized avatar
👨‍💻
A good developer is always learning…

Sai Nikhil iamsainikhil

👨‍💻
A good developer is always learning…
View GitHub Profile
@iamsainikhil
iamsainikhil / responsive-request-desktop-site.js
Last active January 30, 2022 19:31 — forked from dtipson/responsive-request-desktop-site.js
How to make responsive sites better respect the "Request a desktop site" feature on modern mobile browsers.
/*
Enable the "Request Desktop Site" functions on mobile chrome (android and iOS) allow users to see desktop layouts on responsive sites.
Note that this is distinct from "opt out of mobile!" buttons built into your site:
this is meant to work with the browser's native opt-in/opt-out functionality.
Since these functions work, in part, by simply spoofing the user agent to pretend to be desktop browsers,
all we have to do is just remember that the browser once claimed to be android earlier in the same session and
then alter the viewport tag in response to its fib.
Here's an example viewport tag <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@iamsainikhil
iamsainikhil / The Technical Interview Cheat Sheet.md
Created August 29, 2018 19:07 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@iamsainikhil
iamsainikhil / README.md
Created June 23, 2018 19:21 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions