Based on qoomon's Gist.
See the Travis documentation for more information.
These commands should be run on the root of your project/repository.
| [ | |
| { | |
| "name": "Acre", | |
| "initials": "AC", | |
| "regions": [ | |
| "Acre" | |
| ] | |
| }, | |
| { | |
| "name": "Alagoas", |
| #!/bin/bash | |
| # This file installs all my developer dependencies, such as Android SDK and MongoDB | |
| # | |
| # *********************************** | |
| # Only for Ubuntu based Linux Distros | |
| # *********************************** | |
| # | |
| # PPA packages and Python Software Properties | |
| sudo apt-get install software-properties-common python-software-properties -y | |
| # OpenJDK repo information |
| #!/bin/bash | |
| # This file installs the lite version of my developer dependencies (intended to run at AWS servers) | |
| # | |
| # *********************************** | |
| # Only for Ubuntu based Linux Distros | |
| # *********************************** | |
| # | |
| # PPA packages and Python Software Properties | |
| sudo apt-get install software-properties-common python-software-properties -y | |
| # MongoDB repo information |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { | |
| text-align: center; | |
| padding: 150px; | |
| } | |
| h1 { | |
| font-size: 50px; |
| data:text/html;charset=utf-8, | |
| <title>Online Notepad</title> | |
| <style> | |
| html{ height: 100%; } | |
| body{ background: -webkit-linear-gradient(#f0f0f0, #fff); padding: 1%; height: 94%; } | |
| .center { margin: auto; width: 50%; padding: 10px; } | |
| img.center { display: block; margin: 0 auto; } | |
| .logo { width: 150px; } | |
| .paper { font: normal 12px/1.5 "Lucida Grande", arial, sans-serif; width: 50%; height: 80%; margin: 0 auto; padding: 6px 5px 4px 42px; position: relative; color: #444; line-height: 20px; border: 1px solid #d2d2d2; background: #fff; background: -webkit-gradient(linear, 0 0, 0 100%, from(#d9eaf3), color-stop(4%, #fff)) 0 4px; background: -webkit-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -moz-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -ms-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: -o-linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; background: linear-gradient(top, #d9eaf3 0%, #fff 8%) 0 4px; -webkit-background-size: 100% 20px; -moz-back |
| # -*- coding: utf-8 -*- | |
| # this file is used to send an email, passing the message and subject as arguments | |
| # | |
| # to run the file: | |
| # pyhon send-email.py "this is the subject" "this is the message" | |
| # | |
| # * be sure to properly config your email and password at the login function | |
| # * this file was configured mainly for Google emails, not tested on other providers | |
| # * for Google emails, you have to enable access for less secure apps on your account |
| # If you come from bash you might have to change your $PATH. | |
| export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/home/bruno/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| ZSH_THEME="powerlevel9k/powerlevel9k" |
| function widestGap(n, start, finish) { | |
| // Write your code here | |
| let gaps = [] | |
| let positionsWithCars = [] | |
| let positionsWithoutCars = [] | |
| const getCarPositions = (start, end, step) => { | |
| // returns all the positions a car occupies | |
| // there's a bug when a car occupies positions such as [2,2], this is solved with a temporary solution: | |
| // if (carPositions[1] == undefined) carPositions[1] = car.finish; |
| language: node_js | |
| node_js: | |
| - "12.14" | |
| before_deploy: "npm run build" | |
| jobs: | |
| include: | |
| - stage: Test | |
| script: |
Based on qoomon's Gist.
See the Travis documentation for more information.
These commands should be run on the root of your project/repository.