The branching strategy used for both Engine and Ops projects is Scaled Trunk-Based Development where we have a main branch called trunk and the developers work in feature branches that eventually are integrated to the trunk.
This file contains hidden or 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
SUFFIXES = {1000: ['KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'], | |
1024: ['KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']} | |
def approximate_size(size, a_kilobyte_is_1024_bytes=True): | |
'''Convert a file size to human-readable form. | |
Keyword arguments: | |
size -- file size in bytes | |
a_kilobyte_is_1024_bytes -- if True (default), use multiples of 1024 | |
if False, use multiples of 1000 |
This file contains hidden or 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
# view | |
def imprescindibles_playlist(request, id_category, id_parent): | |
playlist = None | |
parent = None | |
last_categoty = None | |
audios = None | |
paginator = None | |
page = 1 | |
try: |
This file contains hidden or 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
- [Aprender a debugear en el navegador](https://javascript.info/debugging-chrome) |
This file contains hidden or 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
/* You can add global styles to this file, and also import other style files */ | |
/* You can add global styles to this file, and also import other style files */ | |
header{ | |
width: 100%; | |
background-repeat:no-repeat; | |
background-image: url("assets/img/patern2.jpg"); | |
background-position: center; | |
/*background-size: 250px;*/ | |
text-align: center; |
This file contains hidden or 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
" enable syntax highlighting | |
syntax on | |
" show line numbers | |
set number | |
" set tabs to have 4 spaces | |
"set ts=4 | |
set tabstop=4 |
This file contains hidden or 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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required |
(capybara working with tables) [https://coderwall.com/p/-vpsrq/using-capybara-to-select-a-particular-cell-within-a-table]
(working with tables) [http://stackoverflow.com/questions/14672346/capybara-check-if-table-column-has-some-value]
This file contains hidden or 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
- hosts: [elastic-mongo] | |
remote_user: user | |
tasks: | |
- name: Install elastic search and mongodb | |
apt: name={{ item }} state=installed | |
with_items: | |
- elasticsearch | |
- mongodb | |
become: true |