Skip to content

Instantly share code, notes, and snippets.

@nf
nf / test.yaml
Created June 22, 2016 03:06 — forked from anonymous/test.yaml
apiVersion: v1
kind: List
items:
- kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: frontend
spec:
replicas: 1
template:
@nf
nf / cat.coffee
Created September 10, 2011 09:48 — forked from anonymous/cat.coffee
Go and CoffeeScript examples of writing a file to stdout
fs = require 'fs'
class File
constructor: (@name) ->
read: (cb) ->
fs.readFile @name, (err, code) ->
throw err if err
cb code.toString()
file = new File "file.txt"
package main
import (
"fmt"
"sort"
"container/heap"
"rand"
)
type record struct {