We're excited to have you attend one of our workshops! Here's a JavaScript (re)fresher to help you get up-to-speed on some features of the language we'll be using.
JavaScript has always had var:
var name = 'Ryan'| // @flow | |
| // Turn a callback-based listener into many async iterators without buffering | |
| import { $$asyncIterator } from 'iterall'; | |
| type Listener = ((arg: any) => void) => Promise<any>; | |
| const defaultOnError = (err: Error) => { | |
| throw new Error(err); | |
| }; |
| import React, { PropTypes } from 'react'; | |
| import styled from 'styled-components' | |
| const Wrapper = styled.div` | |
| // styles here that used to be for .test | |
| ` | |
| const Label = styled.label` | |
| // label styles here | |
| ` |
| // Benötigt PhantomJS. Benutzung: $ phantomjs grab.js | |
| var page = require('webpage').create(); | |
| page.viewportSize = { | |
| width: 10000, // A0: 9933 | |
| height: 15000 // A0: 14043 | |
| }; | |
| page.open('http://localhost/~peter/map/map.html', function(){ | |
| setTimeout(function(){ |