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
import os | |
import site | |
import sys | |
# Remember original sys.path. | |
prev_sys_path = list(sys.path) | |
# we add currently directory to path and change to it | |
pwd = os.path.dirname(os.path.abspath(__file__)) | |
os.chdir(pwd) |
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
Enter following command in terminal to disable overlay scrollbar: | |
Terminal Command: | |
gsettings set com.canonical.desktop.interface scrollbar-mode normal | |
If you want to get back overlay bars, enter following command: | |
Terminal Command: | |
gsettings reset com.canonical.desktop.interface scrollbar-mode |
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
box: nodesource/trusty:4.3.0 | |
build: | |
steps: | |
- script: | |
name: set env vars | |
code: export NODE_ENV=test | |
- npm-install |
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
// USUARIO | |
// Obra | |
{ | |
"id": "object-id", | |
"name": "minha obra", | |
"artist": "Leandro", | |
"owner": {"id": "user-id", "type": "USER"}, | |
"shares": [{"id": "company-id", "type": "COMPANY"},{"id": "another-user-id", "type": "USER"}] | |
} |
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
'use strict' | |
var seneca = require('seneca') | |
function eventStore () { | |
// This is the acid part, if this stores correctly all events are | |
// emitted, if not you die because you are in an invalid state. this | |
// whole part is usually based on optimistic concurrency. | |
seneca.add('role:eventStore,cmd:update', functiom (msg, done) { |
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
var entity = seneca.make('cliente') | |
entity.name = 'Otavio' | |
entity.save$(function(err) { | |
console.log('saved') | |
}) | |
// Collection cliente | |
//id name | |
//1 Otavio |
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
# Clears all the unused images | |
sudo docker images --format "{{.Repository}}:{{.Tag}}" | xargs sudo docker rmi | |
sudo docker rm $(sudo docker ps -a -q) && sudo docker rmi $(sudo docker images -q) && sudo docker ps -a | cut -c-12 | xargs sudo docker rm |
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
1 - Desenhe um EAP inicial para o projeto do estudo de caso (mínimo 3 níveis) | |
2 - Proponha um sistema de controle de mudanças para o projeto de estudo de caso. | |
3 - Proponha um documento de declaração de escopo para o caso. | |
4 - Quais as lições aprendidas do caso? | |
5 - O que deve conter o termo de abertura do projeto de caso? | |
6 - Quais possíveis problemas de integração no caso? | |
7 - O que você pensa dos riscos no projeto? Havia como prever todos? |
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
'use strict' | |
var Seneca = require('seneca') | |
var Mesh = require('seneca-mesh') | |
var envs = process.env | |
var opts = { | |
seneca: { | |
tag: envs.BASE_TAG || 'base' | |
}, |
OlderNewer