If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"
npm adduser
| # Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats | |
| # Change http://example.com (at the end of the last RewriteRule) to your website url | |
| <IfModule mod_headers.c> | |
| #RequestHeader set X-Prerender-Token "YOUR_TOKEN" | |
| </IfModule> | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On |
$ git clone <bitbucket-repo-url>
Your local clone has then your other repo (bitbucket etc.) as remote repo. Your remote repo is stored with the alias "origin" (the default alias used by git if you clone). You then add the openshift repo as remote to your clone. You do that while explicitly using an alias for the remote repo you add - I'm using "openshift" as alias here:
| <html> | |
| <head> | |
| <title>AudioPlayground</title> | |
| <style>* {box-sizing: border-box;}</style> | |
| </head> | |
| <body> | |
| <h3>AudioPlayground</h3> | |
| <p>If you're happy and you know it, clap your hands!</p> | |
| <script> | |
| var Recording = function(cb){ |
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
| // .storybook/Config.js | |
| import React from 'react'; | |
| import PropTypes from 'prop-types'; | |
| import { configure, addDecorator } from '@storybook/react'; | |
| import ContextProvider from './ContextProvider'; | |
| function loadStories() { | |
| require('../stories'); | |
| } |
| /*------------------------------------------ | |
| Responsive Grid Media Queries - 1280, 1024, 768, 480 | |
| 1280-1024 - desktop (default grid) | |
| 1024-768 - tablet landscape | |
| 768-480 - tablet | |
| 480-less - phone landscape & smaller | |
| --------------------------------------------*/ | |
| @media all and (min-width: 1024px) and (max-width: 1280px) { } | |
| @media all and (min-width: 768px) and (max-width: 1024px) { } |
| 'use strict'; | |
| /* global CustomError, getLikedBrands, getTopBrandsForGender */ | |
| function solution(U, N) { | |
| return new Promise((resolve, reject) => { | |
| // Uniq function | |
| const uniq = list => Array.from( new Set(list) ) | |