Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Mohammad Sharifi mmdsharifi

🏠
Working from home
Block or report user

Report or block mmdsharifi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mmdsharifi
mmdsharifi / readExcel.ts
Last active Jul 25, 2018
read excel file
View readExcel.ts
// first: get excel file from server, with responseType: "arraybuffer"
const data = new Uint8Array(this.excelData);
const arr = new Array();
for (let i = 0; i !== data.length; ++i) {
arr[i] = String.fromCharCode(data[i]);
}
const bstr = arr.join("");
const workbook = XLSX.read(bstr, { type: "binary" });
@mmdsharifi
mmdsharifi / cloudSettings
Created Dec 18, 2016
Visual Studio Code Sync Settings GIST
View cloudSettings
{"lastUpload":"2016-12-18T05:41:16.256Z"}
@mmdsharifi
mmdsharifi / osMimeTypes.js
Created Oct 23, 2016
Mime Types in Linux,Windows,Mac,Android
View osMimeTypes.js
const osMimeTypes = {
windowsMimeTypes: [
"text/scriptlet",
"image/x-wmf",
"audio/mid",
"audio/wav",
"image/x-xbitmap",
"application/x-msdownload",
"video/x-ms-wm",
"application/x-msterminal",
View gulpfile.js
// Author : Mohammad Sharifi
// for dotnettips.info
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
util = require('gulp-util'),
connect = require('gulp-connect'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
size = require('gulp-size'),
uncss = require('gulp-uncss'),
You can’t perform that action at this time.