Skip to content

Instantly share code, notes, and snippets.

View surajmandalcell's full-sized avatar
🏃‍♂️
Grinding

Suraj Mandal surajmandalcell

🏃‍♂️
Grinding
View GitHub Profile
@surajmandalcell
surajmandalcell / lazy-load-nvm.sh
Created February 12, 2021 05:25
NVM lazy loading script
#!/bin/bash
#
# NVM lazy loading script
#
# NVM takes on average half of a second to load, which is more than whole prezto takes to load.
# This can be noticed when you open a new shell.
# To avoid this, we are creating placeholder function
# for nvm, node, and all the node packages previously installed in the system
# to only load nvm when it is needed.
@surajmandalcell
surajmandalcell / submime_text3_settings_mac.txt
Last active February 8, 2021 13:35
submime text settings mac
{
"color_scheme": "Packages/ayu/ayu-dark.sublime-color-scheme",
"font_face": "Operator Mono Medium",
"font_size": 13,
"hot_exit": true,
"ignored_packages":
[
"Vintage"
],
"open_files_in_new_window": false,
@surajmandalcell
surajmandalcell / name.js
Created November 10, 2020 11:04 — forked from tkon99/name.js
Random Name Generator for Javascript
/*
(c) by Thomas Konings
Random Name Generator for Javascript
*/
function capFirst(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
}
function getRandomInt(min, max) {
@surajmandalcell
surajmandalcell / firebaseStorageUppload.jsx
Created September 28, 2020 04:50
Firebase storage upload
// Copied from https://github.com/lyhd/reactjs/blob/react-firebase-file-upload/src/index.js
import React, { useState } from "react";
import { render } from "react-dom";
import { storage } from "./firebase";
const ReactFirebaseFileUpload = () => {
const [image, setImage] = useState(null);
const [url, setUrl] = useState("");
const [progress, setProgress] = useState(0);
@surajmandalcell
surajmandalcell / gist:30a162fa7a1f2dfd04315e6b25d1e4f2
Last active April 30, 2020 16:58
List of free courses during covid-19
1. Google Courses: https://learndigital.withgoogle.com/d...
2. UX Design Masterclass: https://uxdesignmasterclass.com ( Code: CARE )
3. Pluralsight: https://app.pluralsight.com
4. Open Learn: https://www.open.edu/openlearn
5. Great Learning: https://www.greatlearning.in/academy

Healthcare

Overall Flow :

https://dribbble.com/shots/11180824-Healthcare-Mobile-App-for-Doctors-and-Patients

(Not great but as it includes mostly login/signup screens) https://dribbble.com/shots/9223937-Doctors-Booking-App-UI/attachments/1267493?mode=media
@surajmandalcell
surajmandalcell / fixFontsMac.txt
Created December 15, 2019 23:42
Fix mac OS font smoothing for non HiDPI monitors
defaults write -g CGFontRenderingFontSmoothingDisabled -bool FALSE
defaults write com.microsoft.VSCode.helper CGFontRenderingFontSmoothingDisabled -bool NO
import React, { createContext, useState } from 'react';
import store from "../../Config/Store";
import fire from "../../Config/Fire";
export const QueryContext = createContext(0);
export const RowContext = createContext(0);
export const DataContext = createContext(0);
fire.auth().onAuthStateChanged(function (user) {
if (user) {
@surajmandalcell
surajmandalcell / reactContextAPI_Example.js
Last active October 29, 2019 04:28
React context api example using hooks (function based components)
// https://youtu.be/6uBgda52yEo
import React, {useState, setState } from 'react';
import { render } from 'react-dom';
export const FruitContext = React.createContext('Apple');
const Index = () => {
const [fruit, setFruit] = useState('Apple');
{"lastUpload":"2021-10-28T07:31:51.114Z","extensionVersion":"v3.4.3"}