Skip to content

Instantly share code, notes, and snippets.

Lucas Pires flyingluscas

Block or report user

Report or block flyingluscas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View PiadaBoa.md

YOU MIGHT NOT NEED JQUERY PLUGINS

YOU MIGHT NOT NEED JQUERY

YOU MIGHT NOT NEED

YOU MIGHT NOT

YOU MIGHT

@flyingluscas
flyingluscas / docker-compose.yml
Created May 14, 2017
CS 1.6 Server with Docker
View docker-compose.yml
version: '2'
services:
cstrike:
image: jarlefosen/cs16
container_name: cs16_server
ports:
- 26900:26900/udp
- 27020:27020/udp
- 27015:27015/udp
@flyingluscas
flyingluscas / .zshrc
Last active Aug 15, 2018
My Terminal Settings
View .zshrc
ZSH_THEME="spaceship"
plugins=(git zsh-autosuggestions)
function artisan {
( php artisan $* )
}
function phpunit {
( vendor/bin/phpunit $* )
@flyingluscas
flyingluscas / ReturnReplacementForElse.md
Last active Apr 17, 2017
Return Replacement for else
View ReturnReplacementForElse.md

Case One

Wrong

$name = 'Lucas';
$greeting = null;

if (is_null($name)) {
    $greeting = 'No name was provided';
} else {
@flyingluscas
flyingluscas / ArrayReplacementForSwitch.md
Last active Apr 17, 2017
Array Replacement for Switch
View ArrayReplacementForSwitch.md
$subject = 'flying';

switch ($subject) {
    case 'flying':
        $result = 'potato';
        break;

    case 'bacon':
        $result = 'is life';
@flyingluscas
flyingluscas / docker-compose.yml
Last active Apr 15, 2017
Example Docker Compose for Wordpress
View docker-compose.yml
version: '2'
services:
wordpress:
image: wordpress:4.7.3-php5.6-apache
container_name: sandbox-wordpress
volumes:
- ./:/var/www/html
ports:
- 8080:80
@flyingluscas
flyingluscas / LaravelCategoryExample.md
Last active Apr 12, 2017
Laravel Category Example
View LaravelCategoryExample.md

Category Model

namespace App;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    /**
View DragonBallSuper.md

Dragon Ball Super - Episódio 1

Qualidade HD MQ LQ

@flyingluscas
flyingluscas / FullmetalAlchemistBrotherhood.md
Last active Aug 15, 2018
Fullmetal Alchemist: Brotherhood
View FullmetalAlchemistBrotherhood.md

Fullmetal Alchemist: Brotherhood - Episódio 4
HD - MQ

Fullmetal Alchemist: Brotherhood - Episódio 3
HD - MQ

Fullmetal Alchemist: Brotherhood - Episódio 1
HD - MQ

Fullmetal Alchem

View CrawlerAnimes.js
const Crawler = require('crawler')
const baseUrl = 'https://animes.zlx.com.br'
const startUrl = baseUrl+'/exibir/67/6561/shingeki-no-kyojin-01'
const crawler = new Crawler({
maxConnections: 10,
skipDuplicates: true,
callback: (error, response, done) => {
const $ = response.$
const title = $('title').text()
You can’t perform that action at this time.