This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
// app/readlineCalc.js | |
const readline = require('readline') | |
// const calc = require('./calc') | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.component('desktop-notificator', { | |
props: ['message', 'title'], | |
template: '<button v-on:click="notify()">??</button>', | |
methods: { | |
notify: function() { | |
if (Notification.permission !== "granted") { | |
Notification.requestPermission(); | |
} else { | |
new Notification(this.title, { | |
body: this.message, |
OlderNewer