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 CommandContainer | |
{ | |
protected $commands = []; | |
public function define($name, \Closure $closure) | |
{ | |
$this->commands[$name] = $closure->bindTo($this); | |
} |
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 | |
include 'recipe/common.php'; | |
task('git:pull', function () { | |
run('git pull'); | |
})->desc('Faz o GIT-PULL trazendo as últimas alterações'); |
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 | |
// Substituir `App::error` pelo código abaixo: | |
App::error(function (Exception $exception, $code) { | |
// Se a aplicação estiver no "local" ou erro for "página não encontrada", não envia | |
if ($code === 404 || App::isLocal()) return; | |
//Log::error($exception); |
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
// ==UserScript== | |
// @name Superanimes | |
// @namespace com.wallacemaxters | |
// @version 0.1 | |
// @description Removendo algumas coisas do Superanimes | |
// @author Wallace de Souza | |
// @match http://www.superanimes.com/* | |
// @grant none | |
// @run-at document-start | |
// @require http://code.jquery.com/jquery-latest.js |
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 | |
use Illuminate\Routing\ControllerInspector; | |
class RoutesSeeder extends Seeder | |
{ | |
public function run() | |
{ | |
$me = $this; |
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
@if(auth()->user()->canAccessByName($route)) | |
<p class="text-right">{!! link_to_route($route, 'adicionar', null, ['class'=>'btn btn-primary']); !!}</p> | |
@endif |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Web.config file for Test. | |
The settings that can be used in this file are documented at | |
http://www.mono-project.com/Config_system.web and | |
http://msdn2.microsoft.com/en-us/library/b5ysx397.aspx | |
--> | |
<configuration> | |
<configSections> |
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 | |
function async_request($method, $url, $params, array $headers = []) | |
{ | |
$method = strtoupper($method); | |
$data = http_build_query($params); | |
$parts = parse_url($url) + [ |
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
#-*- coding: utf-8 -*- | |
from base64 import b64encode | |
print "Digite o nome/caminho do arquivo que deseja abrir: \n" | |
read_filename = raw_input(); | |
with open(read_filename, 'rb') as file: | |
base64_contents = b64encode(file.read()) |
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
(function ( $ ) { | |
$.fn.animatedText = function (first_param, options) { | |
var $self = $(this); | |
$self.attr('in-animation-text', 'true'); | |
if ($.isPlainObject(first_param)) { |