Skip to content

Instantly share code, notes, and snippets.

View wilcorrea's full-sized avatar
🚀
// TODO: be life good

William Correa wilcorrea

🚀
// TODO: be life good
View GitHub Profile
@wilcorrea
wilcorrea / an-component.vue
Created December 2, 2016 13:32 — forked from vinicius73/an-component.vue
Helpers to filter collections
<script>
// an component
import { orderBy, isEmpty } from 'lodash';
import filterByName from '../helpers/filters/by-name';
// omit
computed: {
listOrdened() {
const { orderBy as by, order } = this.configs;
@wilcorrea
wilcorrea / gist:ab9fdee5c6dba69cb4b20ca63d58508a
Created December 6, 2016 06:12 — forked from jason-engage/gist:56b3df8f294af35cd58d
Gulp File for Minifying / Concat / Removing Comments and Console logs of Ionic Project
var gulp = require('gulp');
var gutil = require('gulp-util');
var bower = require('bower');
var concat = require('gulp-concat');
var sass = require('gulp-sass');
var compass = require('gulp-compass');
var minifyCss = require('gulp-minify-css');
var rename = require('gulp-rename');
var sh = require('shelljs');
var path = require('path');
<?php
namespace Core\Mail;
/**
* Class Imap
* @package Core\Mail
*/
class Imap
{
<?php
class Fillable
{
/**
* @var array
*/
protected $fields = [];
/**
* @var array
@wilcorrea
wilcorrea / api.js
Created January 2, 2017 23:16
bagaça toda
import http from './http';
const api = {
auth: {
login (user) {
return http.post('/auth/login', user);
}
}
};
@wilcorrea
wilcorrea / [1]index.php
Last active January 3, 2017 11:11
like-a-boss-4
<?php
define('__APP_ROOT__', dirname(__DIR__));
require __APP_ROOT__ . '/vendor/autoload.php';
use Hero\Core\Router;
use Hero\Http\Request;
use Hero\Http\Response;
module.exports = {
root: true,
parserOptions: {
sourceType: 'module'
},
env: {
browser: true
},
globals: {
'__THEME': true,
@wilcorrea
wilcorrea / [1]Request.php
Created January 3, 2017 04:39
like-a-boss-4[2]
<?php
namespace Hero\Http;
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\StreamInterface;
use Psr\Http\Message\UriInterface;
/**
* Class Request
@wilcorrea
wilcorrea / [1]Response.php
Created January 3, 2017 10:10
like-a-boss-4[3]
<?php
namespace Hero\Http;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;
/**
* Class Response
* @package Hero\Http
@wilcorrea
wilcorrea / [1]App.php
Last active January 3, 2017 11:19
like-a-boss[5]
<?php
namespace Hero\Core;
use Hero\Http\Request;
use Hero\Http\Response;
/**
* Class App
* @package Hero\Core