Skip to content

Instantly share code, notes, and snippets.

View greemwahr's full-sized avatar
🎯
Focusing

Greemwahr greemwahr

🎯
Focusing
  • Anonymous
View GitHub Profile
@greemwahr
greemwahr / readlineCalc.js
Created March 3, 2017 01:09
RisingStack Node Hero Readline Challenge
'use strict'
// app/readlineCalc.js
const readline = require('readline')
// const calc = require('./calc')
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
})
@greemwahr
greemwahr / desktopNotificator.js
Created February 18, 2017 18:45
Vue component for desktop notification
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,