$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| # set the base image to Debian | |
| # https://hub.docker.com/_/debian/ | |
| FROM debian:latest | |
| # replace shell with bash so we can source files | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| # update the repository sources list | |
| # and install dependencies | |
| RUN apt-get update \ |
| module.exports = function(n){ | |
| // do something with n | |
| } |
| const React = require('react') | |
| const Landing = require('./Landing') | |
| const Search = require('./Search') | |
| const Layout = require('./Layout') | |
| const Details = require('./Details') | |
| const ReactRouter = require('react-router') | |
| const data = require('../public/data') | |
| const { Router, Route, hashHistory, IndexRoute } = ReactRouter | |
| const Store = require('./Store') | |
| const { store } = Store |
| So you can propose an event and people can add it to their calendars. | |
| For the record, here's where I generated the link: http://kalinka.tardate.com/ | |
| And here's where I've found the recurring parameter which I added to the generated link: http://stackoverflow.com/questions/22757908/google-calendar-render-action-template-parameter-documentation#comment56381005_23495015 | |
| Thanks Alon! |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
| var gulp = require('gulp'); | |
| var sourcemaps = require('gulp-sourcemaps'); | |
| var source = require('vinyl-source-stream'); | |
| var buffer = require('vinyl-buffer'); | |
| var browserify = require('browserify'); | |
| var watchify = require('watchify'); | |
| var babel = require('babelify'); | |
| function compile(watch) { | |
| var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
| // The hacky bit of this approach is that this module uses | |
| // jQuery, but it is not referenced here. This is because I | |
| // am populating it in the test via global namespace. | |
| // | |
| // In the browser this still works because I am adding jQuery | |
| // via a Browserify transform (browserify-global-shim). | |
| function someModule() { | |
| } | |
| modules.export = someModule; |
| // Get the active Media Query as defined in the CSS | |
| // Use the following format: | |
| // #getActiveMQ-watcher { font-family: "default"; } | |
| // @media only screen and (min-width:20em){ #getActiveMQ-watcher { font-family: "small"; } } | |
| // etc. | |
| window.getActiveMQ = function() { | |
| // Build the watcher | |
| var $watcher = document.createElement('div'), | |
| // alias getComputedStyle | |
| computed = window.getComputedStyle, |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers