Skip to content

Instantly share code, notes, and snippets.

View lucasmichot's full-sized avatar
👋

Lucas Michot lucasmichot

👋
View GitHub Profile

Keybase proof

I hereby claim:

  • I am lucasmichot on github.
  • I am lucasmichot (https://keybase.io/lucasmichot) on keybase.
  • I have a public key ASAKWcuDP56r6m5OdbWEevGblg8WuQ28prnpb2bP4sW7nAo

To claim this, I am signing this object:

<?php
namespace App\Http\Middleware;
use Symfony\Component\HttpFoundation\Response;
use Illuminate\Routing\Middleware\ThrottleRequests as BaseThrottleRequests;
class ThrottleRequests extends BaseThrottleRequests
{
/**
Humbug running test suite to generate logs and code coverage data...
Humbug has completed the initial test run successfully.
Tests: 135 Line Coverage: 66.27%
Humbug is analysing source files...
Mutation Testing is commencing on 57 files...
(.: killed, M: escaped, S: uncovered, E: fatal error, T: timed out)
..M.....S.S.MM........SSS.MM...M.M...M..SS.M..MM..MS.S...... | 60 (33/57)
.M................S..SSSS.......M...............MSMSSSSSSS.. | 120 (50/57)
....M...M.M....M..
138 mutations were generated:
@lucasmichot
lucasmichot / test.sh
Created November 27, 2015 11:17
Vueify issue
lucas@air:~/Gits/lucasmichot $ node --version
v0.12.7
lucas@air:~/Gits/lucasmichot $ npm --version
2.11.3
lucas@air:~/Gits/lucasmichot $ composer create-project laravel/laravel test
...
lucas@air:~/Gits/lucasmichot/test $ npm install -g gulp
lucas@air:~/Gits/lucasmichot/test $ npm install laravel-elixir@^4.0.0 install laravel-elixir-vueify vue --save
lucas@air:~/Gits/lucasmichot/test $ npm install
<?php
require 'vendor/autoload.php';
use Base32\Base32;
function generateRandomString($length = 10)
{
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$charactersLength = strlen($characters);
Humbug running test suite to generate logs and code coverage data...
Humbug has completed the initial test run successfully.
Humbug is analysing source files...
Mutation Testing is commencing on 456 files...
(.: killed, M: escaped, S: uncovered, E: fatal error, T: timed out)
SSSSSSS.....SSSSS....M.MSM.MM.S.M.M.M...MM.MM.SSSSSSSSS.M.M. | 60 ( 8/456)
.SS........SSMS.MM..MS.M...M..M...........M.M..M.M.M..SSSSSS | 120 ( 16/456)
M.S.........S..M..SS.SS.SM...MMMSSSSSSSS.M....SSS.MMM...MM.. | 180 ( 27/456)
MMM...MSSSSSS.MMM........MMMM..S..M....SS.SSM.M..M..SSS...M. | 240 ( 32/456)
.S..SSSSSSM..SSS.SSSES..SSSSSSSSSS.M.MM..MSSSSSSSSSSSSSSSSSS | 300 ( 39/456)
@lucasmichot
lucasmichot / irregular-plurals.php
Last active August 29, 2015 14:11
English irregular plural
<?php
$irregular = [
'addendum' => 'addenda',
'alga' => 'algae',
'alumna' => 'alumnae',
'alumnus' => 'alumni',
'analysis' => 'analyses',
'antenna' => [
'antennas',
==> Reinstalling judy
==> Downloading https://downloads.sourceforge.net/project/judy/judy/Judy-1.0.5/Judy-1.0.5.tar.gz
Already downloaded: /Library/Caches/Homebrew/judy-1.0.5.tar.gz
==> Verifying judy-1.0.5.tar.gz checksum
tar xf /Library/Caches/Homebrew/judy-1.0.5.tar.gz
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/judy/1.0.5
checking whether to enable maintainer-specific portions of Makefiles... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
@lucasmichot
lucasmichot / runkit.patch
Last active August 29, 2015 14:07 — forked from anonymous/71.patch
runkit.patch
From 568928c3d03a1727d17d4e09d684874c41cfd61e Mon Sep 17 00:00:00 2001
From: Adrian Guenter <adrianguenter@gmail.com>
Date: Mon, 18 Aug 2014 22:44:38 -0400
Subject: [PATCH] IS_CONSTANT_ARRAY replaced by IS_CONSTANT_AST and fixed
integer casts
---
runkit_import.c | 12 ++++++------
runkit_props.c | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
@lucasmichot
lucasmichot / parsekit
Created September 23, 2014 23:54
Homebrew PHP Parsekit patch
diff --git a/parsekit-1.3.0/parsekit.c b/parsekit-1.3.0/parsekit.c
index cfc45e7..5ddd3a7 100644
--- a/parsekit-1.3.0/parsekit.c
+++ b/parsekit-1.3.0/parsekit.c
@@ -78,18 +78,18 @@ static void php_parsekit_parse_node(zval *return_value, zend_op_array *op_array,
#ifdef IS_CV
/* PHP >= 5.1 */
} else if (node->op_type == IS_CV) {
- add_assoc_long(return_value, "var", node->u.var);
- add_assoc_stringl(return_value, "varname", op_array->vars[node->u.var].name, op_array->vars[node->u.var].name_len, 1);