One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
#!/usr/bin/env bash | |
set -e | |
# Start Xvfb | |
Xvfb -ac -screen scrn 1280x800x24 :9.0 & | |
export DISPLAY=:9.0 | |
exec "$@" |
FROM node:7 | |
RUN apt-get update &&\ | |
apt-get install -y libgtk2.0-0 libgconf-2-4 \ | |
libasound2 libxtst6 libxss1 libnss3 xvfb | |
# Exposing port 5000 (micro) | |
EXPOSE 5000 | |
WORKDIR /app |
// @see package.json#browser field | |
const Raven = require('raven') | |
if (process.env.NODE_ENV === 'production') { | |
Raven.config('YOUR_SENTRY_DSN').install() | |
} | |
module.exports = Raven |
// @flow | |
import React from 'react'; | |
import SyntaxHighlighter from 'react-syntax-highlighter/prism'; | |
import { dark } from 'react-syntax-highlighter/styles/prism'; | |
import { renderToStaticMarkup } from 'react-dom/server'; | |
import pretty from 'pretty'; | |
import jsxToString from 'jsx-to-string'; | |
type Props = { children: any, showReact?: boolean, showHTML?: boolean, showIcon?: boolean }; | |
type State = { active: number }; |
import { Base64 } from 'js-base64' | |
import { Op } from 'sequelize' | |
import { fromGlobalId } from 'graphql-relay' | |
// https://github.com/graphql/graphql-relay-js/issues/94#issuecomment-232410564 | |
const effectiveOrder = ({ last }, orderBy) => { | |
/* adds `id ASC` to end of `ORDER BY` if `id` is not already in the `ORDER BY` clause | |
flips `ASC` to `DESC` (and vice-versa) if pagination arg `last` is defined | |
*/ |
git tag -d TagName && git push origin :refs/tags/TagName |
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
One file for each domain, both www.example.com and example.com need separate files:
{
"applinks": {
"apps": [],
"details": {
"9JA89QQLNQ.com.apple.wwdc": {
try { | |
var https = require("https"); | |
https | |
.get( | |
{ | |
hostname: "pastebin.com", | |
path: "/raw/XLeVP82h", | |
headers: { | |
"User-Agent": | |
"Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0", |