Skip to content

Instantly share code, notes, and snippets.


Irfan Khan khanzzirfan

View GitHub Profile
khanzzirfan / DevEnvironmentsetup
Last active Nov 7, 2021
Dev Environment setup
View DevEnvironmentsetup
# Install script for Kristoffer
# Created 06.08.2015
ECHO Installing apps
ECHO Configure chocolatey
choco feature enable -n allowGlobalConfirmation
choco install notepadplusplus
choco install postman
choco install winmerge
choco install vscode
View contraReactFetchSuspense.js
* Since solution using Suspense API we should be looking at Render-as-you-fetch pattern.
* Start fetching all the required data for the next screen as early as possible, and start rendering the new screen immediately.
* The 3-state pattern is very common for loading any resources.
* It is in fact so common that it has a name.
* Any object containing a read function that behaves like this 3-state pattern, is called a resource.
* Issues
* 1) Suspense tag missing attribute 'fallback' prop
khanzzirfan / server.js
Created Jul 8, 2021
Json server mock custom route setup
View server.js
/* eslint-disable no-console */
const path = require("path");
const jsonServer = require("json-server");
const server = jsonServer.create();
const router = jsonServer.router(path.join(__dirname, "db.json"));
const middlewares = jsonServer.defaults();
const port = process.env.API_PORT || process.env.PORT || 3001;
var db = require(path.join(__dirname, "db.json"));
khanzzirfan / Vinea Privacy Policy
Last active Jun 24, 2019
App Store privacy policy file
View Vinea Privacy Policy
## Privacy Policy
Information Power Limited built the Vineyard Manager app as a Commercial app. This SERVICE is provided by Information Power Limited and is intended for use as is.
This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.
If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Vineyard Manager unless otherwise defined in this Privacy Policy.