- utils-merge: Merges the properties from a source object into a destination object.
- wildcard: Apply a wildcard search in string, arrays or objects.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Script que elimina de una base de datos todas las tablas que empiezan | |
* por el prefijo dado en $prefix | |
* | |
* Javier Aranda <internet at javierav dot com> - Aula de Software Libre | |
* Universidad de Córdoba | |
**/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* this function removes a directory and its contents. | |
* use with careful, no undo! | |
*/ | |
function rmdir_recursive($dir) { | |
$files = scandir($dir); | |
array_shift($files); // remove '.' from array | |
array_shift($files); // remove '..' from array | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: filetype=ruby | |
require 'rake-pipeline-web-filters' | |
require 'rake-pipeline-i18n-filters' | |
class Minispade < Rake::Pipeline::Web::Filters::MinispadeFilter | |
def initialize(options = {}) | |
super | |
@sourceURL = options[:source_url] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
bundle exec rspec | |
set +e | |
# integration | |
if [ -e rerun.txt ]; then | |
rm -f rerun.txt | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org' | |
gem 'sequel' | |
gem 'sqlite3' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ruby Secret Santa | |
# Javier Aranda <[email protected]> | |
# MIT license | |
# friends list | |
@friends = [ | |
{ name: 'Jesús Taguas', alias: 'jtaguas' }, | |
{ name: 'Rafa García', alias: 'rgarcia' }, | |
{ name: 'Jesús González', alias: 'jgonzalez' }, | |
{ name: 'Paco Hidalgo', alias: 'fhidalgo' }, |
OlderNewer