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
FROM ubuntu:16.04 | |
LABEL maintainer="Mauricio Rodrigues <[email protected]>" | |
RUN echo "----> Upgrading repository" && \ | |
apt-get update -y && \ | |
apt-get upgrade -y && \ | |
apt-get upgrade -y && \ | |
apt-get install -y apt-transport-https \ | |
curl \ |
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
package support; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Map; | |
import support.Entity; | |
/** | |
* A generic storage. | |
* |
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
{ | |
"name": "Package Name", | |
"version": "0.1.0", | |
"description": "Package description", | |
"main": "index.js", | |
"scripts": { | |
"dev": "webpack --mode development --watch --info-verbosity verbose --progress", | |
"prod": "npm run production", | |
"production": "webpack --mode production", | |
"test": "echo \"Error: no test specified\" && exit 1" |
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
/** | |
* Removendo postagens de Bolsonaro 🤮 da sua timeline. | |
* Siga as instruções a seguir e seja feliz. ❤️ | |
* | |
* 1. Abra o seu navegador | |
* 2. Acesse o inspetor de elementos (CTRL+I ou CMD+I) | |
* 3. Acesse a aba "Console" | |
* 4. Cole o código abaixo e pressione enter. | |
* | |
*/ |
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
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import InputSize from './InputSize'; | |
class Input extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
inputValue: '' |
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
<?php | |
//... | |
class DbCouponRepository implements CouponRepositoryInterface | |
{ | |
/** | |
* @const int | |
*/ | |
const PAGE_SIZE = 25; |
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
<?php | |
//... | |
class FetchAllCouponsMethodObject | |
{ | |
/** | |
* @var null|string | |
*/ | |
private $filterableKeyword; |
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
<?php | |
//... | |
interface CouponRepositoryInterface | |
{ | |
/** | |
* Get all coupons. | |
* | |
* @param null $filterableKeyword |
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
<?php | |
// ... | |
class DbCouponRepository implements CouponRepositoryInterface | |
{ | |
/** | |
* @const int | |
*/ | |
const PAGE_SIZE = 25; |
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
<?php | |
$anuncios = Anuncio::select([ | |
'anuncios.id', | |
'anuncios.titulo', | |
'anuncios.descricao', | |
DB::raw('(select if(count(anuncios_favoritados.id) > 0, 'favorito', 'nao_favorito') from anuncios_favoritados where user_id = "' . Auth::user()->id . '") as favoritado ') | |
])->get() |