Skip to content

Instantly share code, notes, and snippets.

View edgebal's full-sized avatar

Emiliano Balbuena edgebal

  • Paraná, Argentina
View GitHub Profile
@edgebal
edgebal / example.html
Created March 26, 2014 16:30
Unbreakable spans
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Unbreakable span</title>
<style>
/* Spans with this class will break
to next line as a whole */
@edgebal
edgebal / cakesvnignore.sh
Last active August 29, 2015 13:57
CakePHP: SVN ignore tmp
# Ignores new changes to tmp directory
svn propset svn:ignore "*" app/tmp/ -R
@edgebal
edgebal / cake
Created April 3, 2014 16:24
Virtualhosts templates
<VirtualHost *:80>
ServerName cakeproject.local.host
DocumentRoot /var/www/cakeproject/app/webroot
<Directory /var/www/cakeproject>
AllowOverride all
Options -MultiViews
</Directory>
</VirtualHost>
// begin http://sampsonblog.com/749/simple-throttle-function
var throttle = function(callback, limit) {
var wait = false; // Initially, we're not waiting
return function () { // We return a throttled function
if (!wait) { // If we're not waiting
callback.call(); // Execute users function
wait = true; // Prevent future invocations
win.setTimeout(function () { // After a period of time
wait = false; // And allow future invocations
}, limit);
import {join} from 'path';
import * as util from 'gulp-util';
import * as chalk from 'chalk';
import {readdirSync, existsSync, lstatSync} from 'fs';
import {APP_SRC, APP_DEST, PLUGINS_DIR, AUTOPREFIXER_BROWSERS} from '../config';
export = function buildPlugins(gulp, _plugins, option) {
return function (cb) {
var plugins = readdirSync(PLUGINS_DIR);
@edgebal
edgebal / tdd-laravel-54-exceptions.md
Created July 26, 2017 12:10
Laravel 5.4 Exceptions for TDD

You can use disableExceptionHandling method presented by Adam Wathan in this gist

Now if you run in your test:

$this->disableExceptionHandling();

you should get full info that will help you to find the problem.

@edgebal
edgebal / launch.json
Created February 15, 2018 21:24
vscode-react-native#606
{
// Utilizar IntelliSense para aprender acerca de los posibles atributos.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Android",
"program": "${workspaceRoot}/.vscode/launchReactNative.js",
"type": "reactnative",