A minimalist desktop application for compiling ES6/7 to ES5 using Babel.
- It should support drag-n-drop.
- It should report any errors Babel encounters.
const selector = '[data-list] [data-scroll-thing]'; | |
function onKeyPressed(event) { | |
if (isIgnoredKey(event)) return; | |
const target = event.target; | |
const letter = getSanitizedLetterFromKey(event.keyCode); | |
if (!letter) return; | |
let scrollContainer = getParentElementMatchingSelector(target, selector); |
var koa = require('koa'); | |
var logger = require('koa-logger'); | |
var path = require('path'); | |
var Router = require('koa-router'); | |
var bodyParser = require('koa-bodyparser'); | |
var render = require('koa-ejs'); |
'use strict'; | |
module.exports = function bar() { | |
return 'bar works'; | |
}; |
#include <string.h> | |
#include <stdlib.h> | |
#include "custom_bio.h" | |
BIO_METHOD dotter_method = { | |
BIO_TYPE_FILTER, | |
"dotter filter", | |
dotter_write, | |
dotter_read, |
class Animal { | |
constructor(speciesName) { | |
this.species = speciesName; | |
this.extinct = false; | |
} | |
isExtinct() { | |
return this.extinct; | |
} | |
} |
var getProductsPromise = Promise.resolve(['banana', 'apple', 'pear']); | |
var _do = function (promise) { | |
var resolved = false, | |
value = null, | |
err = null; | |
promise.then((result) => { | |
value = result; | |
/*** | |
* BaseProximitySensor.h | |
* A base class for proximity sensors. | |
* | |
* @usage: | |
* ```cpp | |
* #include <BaseProximitySensor.h> | |
* | |
* BaseProximitySensor *sensor; | |
* |
#include "Arduino.h" | |
#include "SerialAlarm.h" | |
SerialAlarm::SerialAlarm(String msg) { | |
mMsg = msg; | |
} | |
void SerialAlarm::trigger() { | |
Serial.println(mMsg); |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../core-menu/core-submenu.html"> | |
<polymer-element name="my-element"> |