I hereby claim:
- I am lukasvan3l on github.
- I am lukasvan3l (https://keybase.io/lukasvan3l) on keybase.
- I have a public key ASCx3qjlIqZtOcLK3q0y5WriAS6dRyOLMg0Q4eN2ISlC6Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
const canvas = fabric.createCanvasForNode(width, height); | |
canvas.contextCache.constructor.prototype.getFontSize = function getFontSize() { | |
return 1 * this.font.split('-')[1]; | |
}; | |
canvas.contextCache.constructor.prototype.getFontFamily = function getFontFamily() { | |
return this.font.split('-')[0] | |
}; |
function downloadAndLoadFont(id, url) { | |
https.get(url, (res) => { | |
var data = []; | |
res.on('data', function(chunk) { | |
data.push(chunk); | |
}).on('end', function() { | |
var buffer = Buffer.concat(data); | |
fonts[id] = opentype.parse(toArrayBuffer(buffer)); | |
console.log('loaded font ' + id); | |
}); |
tl;dr: Copy the q42:accounts-microsoft and q42:microsoft package, modify the URLs and service name and it works! Probably anyway...
When creating a commercial application with a wide target audience, you can stumble upon users wanting to login using an unknown and barely used OAuth service. And why deny your users this when you can easily create a login service package?
With only about 400 million active users and only 2nd place as world most valuable brand it makes sense that no developer has created an implementation to log in with your Microsoft account. But believe it or not, some people like logging in with their Microsoft Account. And so, by building on the the default meteor google and [accounts-google](https://atmospherejs.com/me
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk -y | |
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.Beta1.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch | |
sudo mv elasticsearch /usr/local/share |