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
const express = require('express'); | |
const app = express(); | |
const bunyan = require('bunyan'); | |
const {LoggingBunyan} = require('@google-cloud/logging-bunyan'); | |
const loggingBunyan = new LoggingBunyan(); | |
const project = 'steren-test'; |
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(); |
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
runtime: nodejs8 |
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": "web-thumbnails", | |
"version": "1.0.0", | |
"engines": { | |
"node": "^8.4.0" | |
}, | |
"description": "Generate thumbnails of web pages", | |
"main": "server.js", | |
"scripts": { | |
"start": "node server.js", |
We can't make this file beautiful and searchable because it's too large.
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
pattern,cnt | |
^,1657 | |
-$,376 | |
--,355 | |
root.*/file.*\n,348 | |
(?m)^hello world,338 | |
\s+,296 | |
\s*,278 | |
^[a-z],275 | |
[cg]pu,245 |
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
# Extracts constant Go regular expressions from GitHub | |
# using BigQuery GitHub public dataset. | |
# To run on the entire GitHub corpus, | |
# remove the `sample_` prefix from the table names. | |
# Warning: This query processes ~2.2 TB of data, which is above BigQuery free quota. | |
SELECT | |
REGEXP_EXTRACT(pattern, r'^[\"\`](.*)[\"\`]$') as pattern, | |
COUNT(*) AS cnt, | |
FROM ( | |
SELECT |
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
# Analyse impact of https://github.com/golang/go/issues/21463 | |
# using BigQuery GitHub public dataset. | |
# To run on the entire GitHub corpus, | |
# remove the `sample_` prefix from the table names. | |
# Warning: This query processes ~2.2 TB of data, which is above BigQuery free quota. | |
SELECT | |
applies, | |
COUNT(*) AS cnt |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Steren Giannini, portfolio</title> | |
<meta name="description" content="Hello, WebVR! - A-Frame"> | |
<script src="https://aframe.io/releases/0.6.0/aframe.min.js"></script> | |
</head> | |
<body> | |
<a-scene> | |
<a-assets> |