Skip to content

Instantly share code, notes, and snippets.

@fxghqc
fxghqc / main.go
Created January 8, 2018 08:21 — forked from enricofoltran/main.go
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@fxghqc
fxghqc / typescript_angular.adoc
Last active September 10, 2015 09:52 — forked from esfand/typescript_angular.adoc
AngularJS with TypeScript
App.Adapter = DS.RESTAdapter.extend
serializer: DS.RESTSerializer.extend
extract: (loader, json, type, record) ->
root = @rootForType(type)
// Embed JSON data in a new object with root element
newJSON = {}
newJSON[root] = json
json = newJSON
//