Skip to content

Instantly share code, notes, and snippets.

View BrianHicks's full-sized avatar

Brian Hicks BrianHicks

View GitHub Profile
var val MaybeKVPairs
select {
case val = <-pairs:
case <-time.After(1 * time.Second):
t.Error("no value received before timeout")
t.Fail()
}
# vim: ft=conf:
set -g default-terminal "screen-256color"
set-option -g xterm-keys on
#### OPTIONS
# c-a instead of c-b
unbind C-b
unbind l
set -g prefix C-a
board : Signal.Address Action -> Board -> Bool -> Html
board address model selected =
li [ key model.id
, classList [ ( "board", True )
, ( "selected", selected ) ] ] -- todo: click event
[ h2 [ class "title" ] [ text model.name ]
, p [] [ text model.desc ]]
boards : Signal.Address Action -> Model -> Html
boards address model =
all: public
static/css/asteris.css: scss/*.scss scss/**/*.scss
sass -t compressed --scss scss/asteris.scss static/css/asteris.css
public: config.yaml archetypes/**/* content/**/* layouts/**/* static/**/* static/css/asteris.css
hugo
uncss -C public/css -H public $$(find public -name '*.html') | cleancss > public/css/asteris.min.css
mv public/css/asteris.min.css public/css/asteris.css
@BrianHicks
BrianHicks / spec.yml
Last active February 9, 2016 17:14 — forked from TanyaCouture/spec.yml
mantl-collectd package
# collectd
FQDNLookup false
Interval 10
Include "/etc/collectd.d/"
TypesDB "/usr/share/collectd/types.db"
LoadPlugin "cpu"
LoadPlugin "disk"
LoadPlugin "df"
"t\"\\40005\"{}"
"t\"\\400n\"{}"
"v=\"\\5551115123125782" +
"702118158\x1f4045410150" +
"000\""
"t\"\\400200\"{}"
"\"\\5010\"{}"
"t\"\\4000\"{}"
"\"\\405\"{}"
"\"\\4005\"{}"
"wソ\xdc<<070005000\n"
"ソ\xdc<<7005000\n"
"f\x94<<ȅ00ȅ\n"
"w\xbfソ\xdc<<0000\n"
"ソ\xdc<<7000\n"
"w\xbfソ\xdc<<7000000\n"
"w\xbfソ\xdc<<070000\n"
"wソ\xdc<<0700000\n"
"wソ\xdc<<000000\n"
"w\xbfソ\xdc<<20000000\n"
// ensure that all of a resources dependencies have already run successfully
func checkDeps(graph *Graph, id string, results []*ApplyResult) (failed []string) {
for _, dep := range graph.Depends(id) { // not a huge fan of that name but it's consistent.
for _, result := range results {
if result.Path == dep && !result.Success {
failed = append(failed, result.Path)
}
}
}

Some Header

Yeah, this is super! Woohoo!

{ "a":1     }

Footer