Skip to content

Instantly share code, notes, and snippets.

View shijuvar's full-sized avatar

Shiju Varghese shijuvar

View GitHub Profile
@shijuvar
shijuvar / Dockerfile
Created December 17, 2014 04:11
Docker file for a Go app
# golang image where workspace (GOPATH) configured at /go.
FROM golang:latest
# Copy the local package files to the container’s workspace.
ADD . /go/src/github.com/shijuvar/golang-docker
# Build the golang-docker command inside the container.
RUN go install github.com/shijuvar/golang-docker
# Run the golang-docker command when the container starts.
@shijuvar
shijuvar / main.go
Last active March 5, 2016 09:19
A simple HTTP server in Go
package main
import (
"fmt"
"io"
"log"
"net/http"
)
func helloHandler(res http.ResponseWriter, req *http.Request) {
@shijuvar
shijuvar / MobileServiceRequestHelper.cs
Created May 12, 2013 09:17
A generic type Request helper class for Windows Azure Mobile Services
public class MobileServiceRequestHelper<T> where T : class
{
private string tableEndpoint;
private string applicationKey;
private HttpClient client;
public MobileServiceRequestHelper(string tableName)
{
tableEndpoint = ConfigurationManager.AppSettings["TableEndpoint"] + tableName ;
applicationKey = ConfigurationManager.AppSettings["X-ZUMO-APPLICATION"];
client = new HttpClient();