The module on npm exposes the pdfmake Printer, which the docs themselves do not cover. Using it is pretty simple though.
var path = require('path');
var Printer = require('pdfmake');
import uiModules from 'ui/modules'; | |
import template from './component.html'; | |
const app = uiModules.get('kibana'); | |
app.directive('component', function () { | |
return { | |
restrict: 'E', | |
replace: true, | |
template: template, |
function mapSeries(arr) { | |
if (!Array.isArray(arr)) throw new Error('mapSeries requires an Array'); | |
const length = arr.length; | |
const results = new Array(length); | |
arr.reduce((chain, item, i) => { | |
return chain.then(() => item).then(val => results[i] = val); | |
}, Promise.resolve()) | |
.then(() => results); | |
} |
Mods are mostly only available for 1.8 (not 1.8.1-1.8.3) :(
Stuff that happened at work
ddoollooodddxxxxddollodxxdllodoooodddoddlcldddddddooddoodddddollllldxxdddooo | |
xdxxxddddlloxxxxxxxdddxxxxodxdooooddddddoodddddddddddddddddddolloddxxxxxdood | |
xddddxxddooloooodxxxxdxxxxxxxoloddddddddddddddddddddddddddddddddxxxdoddddodd | |
ddllooddddolllooxxxxdxxxxdxxddddddddddddddddddxdddxddddddxxdddddxxxdloxxxxxx | |
lloddddddoodddxxxxxxxxxxxdddddddddddddddddddddddddxxddddxxddddddddddoodxxxxx | |
ooddolooooodxxxxdoodddddddddddddddddddddddddxdxxxdxxxdddddddddddxdxxoodxxdxd | |
ddxdolloddoodddddodddddddddoddddddddxdddxxxxxddxxddxxxddxxdddddddddxxxxdddxd | |
xdxdoloodxdooodddxdddddddddodddxxxdxxdddxdddddddddddddddddddddddddddxxxddddd | |
dddddxdlloddddxddxdddddddddddddxxxxxxdddxxdddddddddddddddddddddddxdddddddddd | |
lllodxdllllodxxxddddddddddddddddxxxxdddddddddddddddddddddddddddddddddxxddddd |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" | |
config.vm.provision :shell, :path => "provision.sh" | |
config.vm.network :forwarded_port, host: 9200, guest: 9200 | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "60", "--cpus", "1"] | |
vb.memory = 512 | |
end |
Hey, I'm the React zealot on Reddit (slash on the core team :)) I expect lots of debate from this :)
I wrote a blog post a while ago about this: http://www.quora.com/Pete-Hunt/Posts/Facebooks-React-vs-AngularJS-A-Closer-Look[22]
First of all I think it's important to evaluate technologies on objective rather than subjective features. "It feels nicer" or "it's cleaner" aren't valid reasons: performance, modularity, community size and ease of testing / integration with other tools are.
I've done a lot of work benchmarking, building apps, and reading the code of Angular to try to come up with a reasonable comparison between their ways of doing things.