I hereby claim:
- I am arvidkahl on github.
- I am arvidkahl (https://keybase.io/arvidkahl) on keybase.
- I have a public key whose fingerprint is 604D 3303 39F0 A698 DD9E F967 FA8C 255B B842 0E88
To claim this, I am signing this object:
| #!/bin/bash | |
| for f in `find . -type f -name "*.rar"` | |
| do | |
| echo "Unpacking " $f " into " `dirname $f` | |
| unrar x -y $f `dirname $f` | |
| rm $f | |
| done |
| (function(){return process.env.port})(true,false) |
| (function(){return process.env})(true,false) |
| chroot_runner | |
| chroot_runner | |
| Running node v-0.6.12 | |
| App in audit mode by Watcher... | |
| Spark running on port 14904 | |
| undefined |
I hereby claim:
To claim this, I am signing this object:
| [].map.call(document.all,function(el){return el.nodeName}).reduce(function(prev,curr){prev[curr]=(prev[curr]||0)+1;return prev},{}) |
| // A single, basic Vue.js instance | |
| let EventBus = new Vue(); |
| // Two isolated components accessing the same global | |
| let ComponentA = Vue.extend({ | |
| created: function(){ | |
| EventBus.$on(“thatEvent”, ()=>{ | |
| console.log(“Event received”); | |
| }) | |
| } | |
| }); |
| // Create a global Event Bus | |
| var EventBus = new Vue() | |
| // Add to Vue properties by exposing a getter for $bus | |
| Object.defineProperties(Vue.prototype, { | |
| $bus: { | |
| get: function () { | |
| return EventBus; | |
| } | |
| } |
| // Emit an Event from a Component using the internal Event Bus | |
| let ComponentWithEventBus = Vue.extend({ | |
| mounted: function(){ | |
| this.$bus.$emit('status', 'Component mounted') | |
| this.$bus.$on('something', ()=>{ | |
| console.log("Something happened"); | |
| }); | |
| } | |
| }); |