(Rua Frei Galvão, 69, São Paulo - SP || Remoto)
- Conhecimento necessário:
- html (5)
- css (5)
- javascript (4)
- bower
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: redis-server | |
| # Required-Start: $syslog | |
| # Required-Stop: $syslog | |
| # Should-Start: $local_fs | |
| # Should-Stop: $local_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: redis-server - Persistent key-value db |
| estados: | |
| - [AC, Acre] | |
| - [AL, Alagoas] | |
| - [AM, Amazonas] | |
| - [AP, Amapá] | |
| - [BA, Bahia] | |
| - [CE, Ceará] | |
| - [DF, Distrito Federal] | |
| - [ES, Espírito Santo] | |
| - [GO, Goiás] |
| YourApp::App.helpers do | |
| def dispatcher_route | |
| "#{controller_name}##{action_name}" | |
| end | |
| def controller_name | |
| return :home if route.controller == "" | |
| route.controller | |
| end |
| systems({ | |
| zeus: { | |
| depends: ['poseidon'], | |
| image: "nkwhr/ruby", | |
| provision: [ | |
| "bundle install --binstubs --path /azk/bundler", | |
| ], | |
| workdir: "/azk/<%= system.name %>", | |
| command: "bin/rackup -p $PORT", | |
| mount_folders: { |
| docker rm --force `docker ps --no-trunc -a | grep -v "balancer_redirect" | grep -v "dns.daemon" | awk '{ print $1}' | grep -v "CONTAINER"` |
| # AZK functions | |
| # Azk shell with bash | |
| function ash() { | |
| APP_DIR=${PWD##*/}; | |
| azk shell --shell="/bin/bash" $APP_DIR; | |
| } | |
| # Run shell command | |
| function as() { |
| module.exports = (robot) -> | |
| list = ['família', 'deus', 'povo', 'democracia'] | |
| yorn = ['sim', 'não'] | |
| sample = (el) -> | |
| el[parseInt(Math.random() * el.length)] | |
| robot.hear /vote/i, (res) -> | |
| res.send "Por " + [sample(list), sample(list)].join(' e ') + ", meu voto é " + sample(yorn) |