Skip to content

Instantly share code, notes, and snippets.

@seanlaff
seanlaff / generate.js
Last active January 27, 2020 19:31
Generating mocks for restful-react
// See https://github.com/contiamo/restful-react/issues/226
// for a discussion about including this in restful-react
var fs = require("fs");
function capitalize(s) {
if (typeof s !== "string") return "";
return s.charAt(0).toUpperCase() + s.slice(1);
}
const importAlias = "gen";
@seanlaff
seanlaff / Dockerfile
Created April 16, 2019 02:03
Grafana docker build using the production dockerfile
FROM grafana/build-container:1.2.4 as build
WORKDIR /go/src/github.com/grafana/grafana
COPY . .
RUN /tmp/bootstrap.sh
RUN ./scripts/build/build.sh
# The rest of this file is essentially copy/paste of the real packages/Dockerfile
FROM debian:stretch-slim as extractor
{
"consumes": [
"application/json"
],
"definitions": {
"aggregationListAggregationsResponse": {
"description": "The filtered aggregation configurations response",
"properties": {
"count": {
"format": "int64",
openapi: "3.0.0"
info:
version: 1.0.0
title: keyword test
license:
name: MIT
paths:
/pets:
post:
summary: Create a pet
http://d3js.org
http://54.183.106.28/datavis_study/