Skip to content

Instantly share code, notes, and snippets.

View lemesdaniel's full-sized avatar
🏠
Working from home

Daniel Lemes lemesdaniel

🏠
Working from home
View GitHub Profile
##############################################################################
# INSTALL isolated PHP 5.6 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 ###
##############################################################################
1) Install necessary bison version
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
dpkg -i bison_2.7.1.dfsg-1_amd64.deb
@lemesdaniel
lemesdaniel / routes.php
Last active August 29, 2015 14:28 — forked from raank/routes.php
my routes.php
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function()
{
Route::get('/',['as'=>'admin.index', 'uses' => 'Admin\DashboardController@index']);
Route::get('dashboard', ['as'=>'admin.dashboard', 'uses' => 'Admin\DashboardController@index']);
});
@lemesdaniel
lemesdaniel / gist:97ac0c3ebe2bd1c72adf
Last active September 5, 2015 23:11 — forked from liamcurry/gist:2597326
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@lemesdaniel
lemesdaniel / despesa.blade.php
Last active February 29, 2016 00:40
Teste Vue - Cadastro de despesa
@extends('layout/admin')
@section('conteudo')
<h2 class="text-right">Despesa simples</h2><br>
<div id="contentProduto" class="row">
<div class="col-md-7">
@lemesdaniel
lemesdaniel / notes_on_testing.md
Created June 13, 2021 20:33 — forked from ikusalic/notes_on_testing.md
Exploration: how to do unit testing

Testing notes

Uncle Bob: Test First

Source: http://blog.8thlight.com/uncle-bob/2013/09/23/Test-first.html

  • tests are specs for the system and are more important than the system itself
  • (Tests should be) short, well factored, and well named. They ought to read like specifications; because they are specifications
  • (Goal:) trust your test suite to the extent that, if it passes, you know you