I hereby claim:
- I am skeep on github.
- I am skeep (https://keybase.io/skeep) on keybase.
- I have a public key whose fingerprint is 5656 0FA7 3D08 E89B BDD8 E484 85A4 8D59 E587 64BF
To claim this, I am signing this object:
var moduleContext = require.context('./app', true, /\.module\.js$/); | |
moduleContext.keys().forEach(moduleContext); | |
var testsContext = require.context('./app', true, /\.spec\.js$/); | |
testsContext.keys().forEach(testsContext); |
I hereby claim:
To claim this, I am signing this object:
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ai %ar by %an" $branch | head -n 1` \\t$branch; done | sort -r |
/** | |
* Basic Graph data structure implementation | |
* @constructor | |
*/ | |
var Graph = function() { | |
this.vertices = {}; | |
}; | |
Graph.prototype.add = function(name, edges) { | |
edges = edges || null; |
const path = require('path'); | |
const paths = { | |
BUILD: path.resolve(__dirname, 'build'), | |
SRC: path.resolve(__dirname, 'src') | |
}; | |
module.exports = { | |
entry: path.join(paths.SRC, 'app.js'), | |
output: { |
version: '3' | |
services: | |
server1: | |
image: httpd:alpine | |
ports: | |
- 8080:80 | |
server2: | |
image: httpd:alpine | |
ports: | |
- 8081:80 |
version: '3' | |
services: | |
server1: | |
image: httpd:alpine | |
environment: | |
- VIRTUAL_HOST=server1.test | |
server2: | |
image: httpd:alpine | |
environment: | |
- VIRTUAL_HOST=server2.test |
brew install dnsmasq | |
sudo echo 'address=/.test/127.0.0.1' >> /usr/local/etc/dnsmasq.conf | |
sudo mkdir -p /etc/resolver | |
echo 'nameserver 127.0.0.1' | sudo tee /etc/resolver/test | |
sudo brew services restart dnsmasq |
FROM node:carbon | |
# Create app directory | |
RUN mkdir -p /usr/src/app | |
RUN chmod -R 777 /usr/src/app | |
WORKDIR /usr/src/app | |
# Copy code | |
COPY package.json /usr/src/app/ |
version: "3.0" | |
services: | |
webapp: | |
build: | |
context: ../webapp | |
volumes: | |
- ../webapp:/usr/src/app | |
links: |