Skip to content

Instantly share code, notes, and snippets.

@pontiyaraja
pontiyaraja / Dockerfile - from nginx tag
Last active Nov 4, 2016
Dockerfile to run a web application in a docker image nginx server. This file runs from a nginx tag
View Dockerfile - from nginx tag
FROM nginx:latest
MAINTAINER Pandiyaraja Ramamoorthy <pandiyarajaramamoorthy@gmail.com>
# install node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \
9554F04D7259F04124DE6B476D5A82AC7E37093B \
94AE36675C464D64BAFA68DD7434390BDBE9B9C5 \
@pontiyaraja
pontiyaraja / parse_json.go
Created Jul 12, 2019 — forked from mjohnsullivan/parse_json.go
Parse JSON objects with arbitrary key names in Go using interfaces and type assertions
View parse_json.go
// Parsing arbitrary JSON using interfaces in Go
// Demonstrates how to parse JSON with abritrary key names
// See https://blog.golang.org/json-and-go for more info on generic JSON parsing
package main
import (
"encoding/json"
"fmt"
)