Skip to content

Instantly share code, notes, and snippets.

View rahulcs754's full-sized avatar
🏠
Working from home

rahul shukla rahulcs754

🏠
Working from home
View GitHub Profile
@rahulcs754
rahulcs754 / watchResize.js
Created November 16, 2017 12:46 — forked from aarongustafson/watchResize.js
Efficient callback management for window.onresize
(function( window ){
window.watchResize = function( callback ){
var resizing;
callback.size = 0;
function done()
{
var curr_size = window.innerWidth;
clearTimeout( resizing );
resizing = null;
// only run on a true resize
Hello Friends!
Today we will learn About.
"How to autoload PHP classes the Composer way?"
or
"How to Implement PSR-4 in our project ?"
@rahulcs754
rahulcs754 / create-react-app-on-heroku.sh
Created February 9, 2018 07:03 — forked from mars/create-react-app-on-heroku.sh
Create a React app & deploy to Heroku
## Global install of the app generator
npm install -g create-react-app
## Setup the app (first-time only)
create-react-app my-app
cd my-app
git init
# Create the Heroku app; requires free account at https://www.heroku.com/
heroku create -b https://github.com/heroku/heroku-buildpack-static.git