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
version: '3' | |
services: | |
elasticsearch: | |
image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2 | |
container_name: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: |
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
const vorpal = require('vorpal'); | |
const cli = vorpal(); | |
cli | |
.command('newprovider <handle> <name>', 'Creates a new provider, eg. `newprovider new "New provider"`') | |
.action(function(args, cb) { | |
const { handle, name } = args; | |
console.log(`Creating provider with handle ${handle} and name ${name}`); | |
this.prompt([ |
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
// Adapted from https://css-tricks.com/line-clampin/#article-header-id-1 | |
@mixin clamp-text($line-height, $line-count) { | |
height: $line-height * $line-count; | |
position: relative; | |
overflow: hidden; | |
&:after { | |
content: ""; | |
text-align: right; | |
position: absolute; |