Skip to content

Instantly share code, notes, and snippets.

View flaviozantut's full-sized avatar
👽

Flávio Zantut flaviozantut

👽
View GitHub Profile
@flaviozantut
flaviozantut / 0_reuse_code.js
Created October 8, 2013 21:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
class TestCase extends Illuminate\Foundation\Testing\TestCase {
// ...
public function appMock($name)
{
$mock = Mockery::mock($name);
App::instance($name, $mock);
# Configure colors, if available.
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
c_reset='\[\e[0m\]'
c_user='\[\033[1;33m\]'
c_path='\[\e[0;33m\]'
c_git_clean='\[\e[0;36m\]'
c_git_dirty='\[\e[0;35m\]'
else
c_reset=
c_user=