Skip to content

Instantly share code, notes, and snippets.

View gaby-mg-snippets's full-sized avatar

gaby-mg-snippets

View GitHub Profile
@gaby-mg-snippets
gaby-mg-snippets / PROJECT.md
Created October 14, 2021 23:35
Project Template

{{ PROJECT_TITLE }}

Project Definition

Why

Rules

Outcome Vision

@gaby-mg-snippets
gaby-mg-snippets / Library: Ethnology: Language
Last active May 16, 2019 14:34
Library: Language Study
# Nombre lenguaje
## Etimología del exónimo
🇦🇲
### Imágenes
## Etimología del endónimo
@gaby-mg-snippets
gaby-mg-snippets / news_daily_resume.md
Last active May 8, 2019 08:43
Newspapers Daily Resume

España

El País (1976)

El Mundo (1989)

La Vanguardia (1881)

La Voz de Galicia (1882)

@gaby-mg-snippets
gaby-mg-snippets / autotest.rb
Created January 19, 2014 15:16
Ruby: watchr wrapper script for TDD with PHPUnit
watch("models/(.*).php") do |match|
run_test %{tests/test_#{match[1]}.php}
end
watch("tests/.*.php") do |match|
run_test match[0]
end
def run_test(file)
unless File.exist?(file)
@gaby-mg-snippets
gaby-mg-snippets / gist:6941259
Created October 11, 2013 20:11
gabymg.com/projects-custom-post-type
add_action( 'init', 'create_gaea_projects_post_type');
function create_gaea_projects_post_type()
{
register_post_type( 'gaea_project',
array(
'labels' => array(
'name' => 'Projects',
'singular_name' => 'Project'
),
@gaby-mg-snippets
gaby-mg-snippets / gist:2320687
Created April 6, 2012 15:13
JavaScript: Self-Invoking Anonymous Function
(function() {
})();
@gaby-mg-snippets
gaby-mg-snippets / gist:2251617
Created March 30, 2012 13:36
HTML: XHTML 1.0 Strict Starting Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title></title>
</head>
<body>
@gaby-mg-snippets
gaby-mg-snippets / seeding.php
Last active August 29, 2015 14:13
PHP: Drupal: DB Seeding
<?php
$pages = [
[
'title' => 'Promociones',
'path' => 'promociones',
'body' => 'Esta es la página de promociones',
],
[
'title' => 'Downloading',
@gaby-mg-snippets
gaby-mg-snippets / config.yaml
Last active August 29, 2015 14:13
YAML: territorio
---
vagrantfile-local:
vm:
box: puphpet/ubuntu1404-x32
box_url: puphpet/ubuntu1404-x32
hostname: ''
memory: '512'
cpus: '1'
chosen_provider: virtualbox
network:
@gaby-mg-snippets
gaby-mg-snippets / custom_provisioning.sh
Last active August 29, 2015 14:13
Shell scripting: PuPHPet: Custom provisioning for territorio
#!/bin/bash
################################################################################
# Drupal
################################################################################
# Download
rm -rf /vagrant/drupal/ /vagrant/default /vagrant/html
cd /vagrant
drush dl -q drupal --drupal-project-rename=drupal