Skip to content

Instantly share code, notes, and snippets.

View marcioAlmada's full-sized avatar
🚀

Márcio Almada marcioAlmada

🚀
View GitHub Profile
@marcioAlmada
marcioAlmada / autotest
Last active December 12, 2015 09:59 — forked from erithmetic/autounit
# Prereqs:
# * Ruby
# * gem install watchr
# * gem install rb-inotify
# * pecl install xdebug // in case you want to generate coverage reports
# Usage:
# copy autotest to php project directory
# run watchr autotest
#!/bin/bash
# Copyright (c) 2011, Michel Alexandre Salim <salimma@fedoraproject.org>
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and its documentation for any purpose, provided that the
# above copyright notice and the following two paragraphs appear in
# all copies of this software.
#
# IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
# file: /etc/X11/xorg.conf.d/20-intel.conf
# source: https://wiki.archlinux.org/index.php/Intel_Graphics#Choose_acceleration_method
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
EndSection
#!/bin/bash
# Copyright (c) 2011, Michel Alexandre Salim <salimma@fedoraproject.org>
# Permission is hereby granted, without written agreement and without
# license or royalty fees, to use, copy, modify, and distribute this
# software and its documentation for any purpose, provided that the
# above copyright notice and the following two paragraphs appear in
# all copies of this software.
#
# IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
#unbind C-b
#set -g prefix C-b
# allow mouse
# set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# set -g mode-mouse on # alternatve way
set -g mode-mouse off
# better window split behavior
unbind '%'
; A REPL-based, annotated Seesaw tutorial
; Please visit https://github.com/daveray/seesaw for more info
;
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
;
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.
@marcioAlmada
marcioAlmada / palette.sh
Last active August 29, 2015 14:21
colors
palette ()
{
echo -en "\n + ";
for i in {0..35};
do
printf "%2b " $i;
done;
printf "\n\n %3b " 0;
for i in {0..15};
do
<?php
/**
* Macro to backport enum from the future
*/
macro {
enum T_STRING·name {
·ls
(
·rtoken('/^\w+$/')·field
--TEST--
Non delimited layer matching
--FILE--
<?php
macro {
(T_STRING·A ···rest) // matches a lisp form
} >> {
T_STRING·A(···rest)
}
@marcioAlmada
marcioAlmada / semi_reserved-php7.1.txt
Created August 31, 2015 22:19
List of tokens that can be used as class member identifiers on PHP7
T_INCLUDE
T_INCLUDE_ONCE
T_EVAL
T_REQUIRE
T_REQUIRE_ONCE
T_LOGICAL_OR
T_LOGICAL_XOR
T_LOGICAL_AND
T_INSTANCEOF
T_NEW