- Clear feature ownership
- Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
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 api | |
import ( | |
"net/http" | |
"github.com/ORG/PROJECT/user" | |
) | |
func accessControl(level user.AccessLevel) func(handler) handler { | |
return func(handler handler) handler { |
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 ( | |
"log" | |
"net/http" | |
"time" | |
) | |
type Handler func(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) |
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
Submitted By: Andrew Bradford <[email protected]> | |
Date: 2013-10-14 | |
Initial Package Version: 4.7.3 | |
Origin: Gregor Richards' musl-cross | |
Upstream Status: None | |
Description: Patches to gcc to build for musl-libc. | |
# HG changeset patch | |
# Parent f50bb54f331f73405131a30b4f353cfda1c70304 | |
Use the generic implementation of libstdc++ primitives when we're on musl, not the glibc one. |
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
" Vim indent file | |
" Language: CSS | |
" Maintainer: Nikolai Weibull <[email protected]> | |
" Latest Revision: 2010-12-22 | |
if exists("b:did_indent") | |
finish | |
endif | |
let b:did_indent = 1 |
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" | |
"log" | |
"net/http" | |
"github.com/gorilla/mux" | |
) |
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 ( | |
"crypto/md5" | |
"crypto/rand" | |
"encoding/hex" | |
"encoding/json" | |
"io" | |
"net/http" | |
) |
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" | |
"github.com/go-martini/martini" | |
) | |
func main() { | |
m := m := martini.Classic(); | |
m.NotFound(func(w http.ResponseWriter, r *http.Request) { |
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
#!/bin/bash | |
function vm { | |
function vm_status { | |
return $(vboxmanage list runningvms | grep "$1" &> /dev/null); | |
} | |
function vm_start { | |
vboxheadless -s "$1" &> /dev/null & echo "Server is going up..." | |
# VBoxManage startvm "$1" --type headless &> /dev/null & echo "Server is going up..." |
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
<?php | |
class validiator { | |
/** | |
* !! The class name isn't misspled, it's just the package name. :) !! | |
* | |
* @var array $filters | |
* @var array $errorMsgs | |
* |