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
module.exports = function (grunt) { | |
"use strict"; | |
// Config... | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
copy: { | |
css : { | |
src: 'css/**', |
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
From 707f11370d155a20d83ce90dd89568b1b2e195b1 Mon Sep 17 00:00:00 2001 | |
From: Matthias Vandermaesen <[email protected]> | |
Date: Sat, 6 Jul 2013 16:47:14 +0200 | |
Subject: [PATCH] Added: uninstall tables defined in MollomSchema::getSchema() | |
--- | |
includes/Schema.php | 25 ++++++++++++++++++++++--- | |
uninstall.php | 4 +++- | |
2 files changed, 25 insertions(+), 4 deletions(-) |
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 | |
/** | |
* @file | |
* | |
* Minimal AJAX page. Call like this: | |
* $.ajax({ | |
* type: 'GET', | |
* url: '/drupal-ajax.php?param1=... | |
* data: {}, |
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 | |
function get_season($hemisphere = 'northern', $date = '') { | |
$now = (!empty($date)) ? strtotime($date) : strtotime(date('Y/m/d')); | |
$season_dates = array( | |
'northern' => array( | |
'/03/21' => 'spring', | |
'/06/21' => 'summer', | |
'/09/21' => 'autumn', | |
'/12/21' => 'winter', |
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
$env_id = 'solr'; | |
$query = apachesolr_current_query($env_id); | |
if ($query) { | |
$response = apachesolr_static_response_cache($query->getSearcher()); | |
} | |
$query_params = $query->getParams(); |
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
SELECT table_schema "<tablename>", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", sum( data_free )/ 1024 / 1024 "Free Space in MB" FROM information_schema.TABLES GROUP BY table_schema ; | |
SELECT table_name, sum( data_length + index_length ) / 1024 / 1024 FROM tables WHERE table_schema = "<tablename>"; |
NewerOlder