This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: List | |
items: | |
- kind: Deployment | |
apiVersion: extensions/v1beta1 | |
metadata: | |
name: frontend | |
spec: | |
replicas: 1 | |
template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"sort" | |
"container/heap" | |
"rand" | |
) | |
type record struct { |