OneName.io Identity Verification
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
Show hidden characters
{ | |
"compilerOptions": { | |
/* Basic Options */ | |
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | |
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | |
"sourceMap": true, /* Generates corresponding '.map' file. */ | |
"outDir": "build", /* Redirect output structure to the directory. */ | |
/* Strict Type-Checking Options */ |
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 deepcopy provides a function for deep copying map[string]interface{} | |
// values. Inspired by the StackOverflow answer at: | |
// http://stackoverflow.com/a/28579297/1366283 | |
// | |
// Uses the golang.org/pkg/encoding/gob package to do this and therefore has the | |
// same caveats. | |
// See: https://blog.golang.org/gobs-of-data | |
// See: https://golang.org/pkg/encoding/gob/ | |
package deepcopy |
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
// Mergesort | |
package main | |
import "fmt" | |
func Push(front int, rest []int) []int { | |
new := make([]int, len(rest)+1) | |
copy(new[1:], rest) | |
new[0] = front |
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 string_concat | |
import ( | |
"bytes" | |
) | |
func ConcatOperator(original *string, concat string) { | |
// This could be written as 'return *original + concat' but wanted to confirm no special | |
// compiler optimizations existed for concatenating a string to itself. | |
*original = *original + concat |
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
var express = require('express'); | |
var app = express.createServer(); | |
app.configure('development', function () { | |
app.use(express.logger()); | |
app.use(express.errorHandler({ | |
dumpExceptions: true, | |
showStack: true | |
})); |