Skip to content

Instantly share code, notes, and snippets.

Avatar

Zuhry Mousa mzmousa

View GitHub Profile
@mzmousa
mzmousa / multitenant.md
Created Feb 11, 2019 — forked from woloski/multitenant.md
Multi Tenant Apps in Auth0
View multitenant.md

Multitenancy refers to a principle in software architecture where a single instance of the software runs on a server, serving multiple client-organizations (tenants)

Let's start by enumerating some multi tenant applications and understand how they handle it.

Slack

Authentication:

@mzmousa
mzmousa / js-xlsx-bower-angular.js
Created Jun 15, 2017
Write to an excel sheet using js-xlsx with angular
View js-xlsx-bower-angular.js
'use strict';
// bower install js-xlsx
// in controller
$scope.saveAsXlsx = function() {
let data = [['a', 'b', 'c', 'd', 'e'], [1, 2, 3, 4, 5]];
// create an excel worksheet from an array of arrays (aoa) of survey data
let worksheet1 = XLSX.utils.aoa_to_sheet(data);
// instantiate new excel workbook
let workbook = XLSX.utils.book_new();
@mzmousa
mzmousa / springer-free-maths-books.md
Created Dec 30, 2015 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links