git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
. | |
├── books | |
│ ├── handlers.go | |
│ └── models.go | |
├── config | |
│ └── db.go | |
└── main.go |
FROM golang:1.4 | |
# install gpm | |
RUN git clone https://github.com/pote/gpm.git /tmp/gpm | |
WORKDIR /tmp/gpm | |
RUN ./configure && make install | |
# sets the working directory to the application source for convenience | |
ADD . /go/src/github.com/larryprice/myapp | |
WORKDIR /go/src/github.com/larryprice/myapp |
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200
Initializing a vault:
vault init
package consumer | |
import ( | |
"errors" | |
"testing" | |
"github.com/bitly/go-nsq" | |
) | |
// tests nsq.HandlerFunc. just write the function in line in the test |
// What do you guys think about this as a way to possibly pass streams | |
// around from one module to another? I don't think it comes up in simple | |
// examples but I can see in complex cases where if you wanted a separation of | |
// concerns for a stream, that you might want them to be passed around. It | |
// kind of opens up a protocol for communication between modules. | |
// | |
// Essentially this is a widgetMaker module which is responsible for making | |
// widgets. And the widgetKing module wants to be notified every time a widget | |
// comes off the factory floor. |
#!/bin/bash -e | |
echo ' | |
PATH=$HOME/go/bin:$PATH | |
export GOPATH=$HOME | |
export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
export EDITOR=vim | |
' >> ~/.profile | |
sudo apt-get update |
call plug#begin('~/.vim/plugged') | |
Plug 'kchmck/vim-coffee-script' | |
Plug 'kien/ctrlp.vim' | |
Plug 'rking/ag.vim' | |
Plug 'scrooloose/nerdcommenter' | |
Plug 'scrooloose/nerdtree' | |
Plug 'slim-template/vim-slim' | |
Plug 'thoughtbot/vim-rspec' | |
Plug 'tpope/vim-fugitive' |
If you've done much reading about angularjs you've no doubt come across mention of karma, a test runner recommended especially for use with angularjs applications. The [angular-seed][1] project is a great way to get started with the basics of angular testing using karma, but for projects of any significant size you will soon hit the cieling in terms of organizational complexity. What I want to share in this article is the approach I have taken using [Grunt][2] and the [grunt-karma][3] plugin to sustainably manage my projects' client side unit tests and run them via [TravisCI][4]. I plan to write another entry about how to approach the actual minutia of unit testing angular code in the near future.
Karma is really nothing more than a set of centralized configuration that builds a test runner for you. The advantage being that it allows you to easily execute tests in a headless browser, and output to the command line. As someone who has actually set all of that up from scratc
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Mon, 14 Apr 2014 04:55:12 GMT till Tue, 14 Apr 2015 04:55:12 GMT.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter((user) -> user.location = 'malaysia')
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.