Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hello-ts", | |
"version": "1.0.0", | |
"description": "Hello TS", | |
"scripts": { | |
"start": "node server.js", | |
"gcp-build": "npm run build", | |
"build": "tsc server.ts" | |
}, | |
"author": "Steren <steren@google.com>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="insertTest"></div> | |
<script> | |
var wikipediaHTMLResult = function(data) { | |
var readData = $('<div>' + data.parse.text.* + '</div>'); | |
// handle redirects | |
var redirect = readData.find('li:contains("REDIRECT") a').text(); | |
if(redirect != '') { | |
callWikipediaAPI(redirect); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps: | |
- name: 'jrottenberg/ffmpeg' | |
args: ['-i', 'input.mp4', 'output.avi'] | |
artifacts: | |
objects: | |
location: 'gs://steren-test-oneshot/' | |
paths: ['output.avi'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read docs at https://artillery.io/docs/cli-reference/#quick | |
npx artillery quick --rate 1 --duration 20 https://myapp.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8 | |
WORKDIR /usr/src/app | |
COPY package*.json ./ | |
ENV NODE_ENV=production | |
RUN npm install --production | |
COPY . . | |
CMD [ "npm", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8 | |
# Install utilities | |
RUN apt-get update --fix-missing && apt-get -y upgrade | |
# Install latest chrome dev package. | |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | |
&& apt-get update \ | |
&& apt-get install -y google-chrome-unstable --no-install-recommends \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('@google-cloud/trace-agent').start(); | |
const express = require('express'); | |
const app = express(); | |
const bunyan = require('bunyan'); | |
const {LoggingBunyan} = require('@google-cloud/logging-bunyan'); | |
const loggingBunyan = new LoggingBunyan(); |