This file contains 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
# Entity A | |
A: | |
columns: | |
name: string(255) | |
relations: | |
Bs: | |
type: many | |
class: B | |
local: id |
This file contains 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
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; | |
CREATE SCHEMA IF NOT EXISTS `mydb` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; | |
USE `mydb` ; | |
-- ----------------------------------------------------- | |
-- Table `mydb`.`commento` | |
-- ----------------------------------------------------- |
This file contains 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 | |
// Create webform default element | |
if (!isset($node->webform)) { | |
$node->webform = webform_node_defaults(); | |
} | |
// @todo: remove unused settings | |
$node->webform['confirmation'] = 'BLA BLA BLA'; | |
$node->webform['confirmation_format'] = 'full_html'; | |
$node->webform['redirect_url'] = '<confirmation>'; |
This file contains 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 | |
hook_form_FORM_ID_alter(&$form, &$form_state, $form_id) { | |
set_label_as_placeholder($form); | |
} | |
function set_label_as_placeholder(&$form) { | |
foreach (element_children($form) as $name) { | |
element_children($form[$name]); | |
if ($form[$name]['#type'] == 'textfield') { |
This file contains 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
#!/bin/sh | |
VIDEO_NAME=$1 | |
VIDEO_BASENAME=${VIDEO_NAME%%.*} | |
THUMB_FOLDER=thumbs | |
CONVERTED_FOLDER=converted | |
VIDEO_WIDTH=480 | |
VIDEO_HEIGHT=640 | |
echo "Conversion of $VIDEO_NAME started" |
This file contains 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
Galleria.get()[0].bind('image', function(e) { | |
_gaq.push(['_setCustomVar', 1, 'Galleria', window.location.href, e.index]); | |
_gaq.push(['_trackPageview']); | |
}); |
This file contains 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
(function ($) { | |
Drupal.behaviors.product_search = { | |
attach: function (context, settings) { | |
$('.ciripiri-element', context).click(function () { | |
alert('cliccato'); | |
}); | |
} | |
}; | |
})(jQuery); |
This file contains 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
(function ($){ | |
Drupal.behaviors.test_js = { | |
attach: function(context, settings) { | |
$('#edit-test-prova').change(function() { | |
console.log('cambiato'); | |
}) | |
} | |
} | |
})(jQuery); |
This file contains 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
- hosts: all | |
sudo: yes | |
vars_files: | |
- [ "vars/${inventory_hostname}/projects.yml", "vars/projects.yml" ] | |
tasks: | |
- include: tasks/projects.yml |
This file contains 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
tasks: | |
- include: tasks/php/pear_channel.yml | |
with_items: | |
- pear.phing.info | |
- pear.phpmd.org | |
- pear.phpdoc.org | |
- pear.pdepend.org | |
- pear.phpunit.de |
OlderNewer