Skip to content

Instantly share code, notes, and snippets.

View bhaskarSingh's full-sized avatar

Bhaskar Singh bhaskarSingh

View GitHub Profile
@bhaskarSingh
bhaskarSingh / ImageTools.js
Created January 2, 2019 07:44 — forked from SagiMedina/ImageTools.js
Resize and crop images in the Browser with orientation fix using exif
import EXIF from 'exif-js';
const hasBlobConstructor = typeof (Blob) !== 'undefined' && (function checkBlobConstructor() {
try {
return Boolean(new Blob());
} catch (error) {
return false;
}
}());
@bhaskarSingh
bhaskarSingh / gist:b329309d0ebd080697a9bd88c1fb02be
Last active April 17, 2018 21:00
To solve error relating to installing npm on mac do the following steps
*To solve error relating to installing npm on mac do the following steps:*
>First install node package from here: https://nodejs.org/en/
>Then go to the jeevan-rakhat root directory, and run npm install
>if there is any error like this :nodemon: command not found, then run this command : `npm install nodemon --save`
>& if when running `gulp` command , it results in “command is not found” error then run this command : `sudo npm install gulp -g`
*Tip: always google the error before asking for help, there already might be a solution to it*
/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software