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
<?xml version="1.0" encoding="utf-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:output method="text" /> | |
<xsl:variable name="delimiter" select="';'" /> | |
<!-- define an array containing the fields we are interested in --> | |
<xsl:variable name="fieldArray"> | |
<field>Production</field> | |
<field>object_number</field> |
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 (root, factory) { | |
'use strict'; | |
if (typeof define === 'function' && define.amd) { | |
// AMD. Register as an anonymous module. | |
define(['moment'], factory); | |
} else if (typeof exports === 'object') { | |
// Node. Does not work with strict CommonJS, but | |
// only CommonJS-like environments that support module.exports, | |
// like Node. | |
module.exports = factory(require('moment')); |
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 | |
* Command All Field Labels | |
* | |
* Field labels can be pesky to maintain. Take control back over your field | |
* instance labels. Set field instance labels in bulk with this drush command. | |
* | |
* Show a single field instance label for a specific view mode |
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
var term = require('hypernal')() | |
var tablify = require('tablify').tablify | |
var request = require('browser-request') | |
var url = require('url') | |
var moment = require('moment') | |
term.appendTo(document.body) | |
// style fake terminal | |
var termEl = term.term.element |
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
artoo.scrape('form#system-modules table tr:has(td input[type=checkbox]:checked)', { | |
title: {sel: 'td:nth-child(2) label'}, | |
version: {sel: 'td:nth-child(3)'}, | |
description: {sel: 'td:nth-child(4)'} | |
}, artoo.saveCsv); |
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
## Skeleton config file for RetroArch | |
# Save all save files (*.srm) to this directory. This includes related files like .bsv, .rtc, .psrm, etc ... | |
# This will be overridden by explicit command line options. | |
# savefile_directory = | |
# Save all save states (*.state) to this directory. | |
# This will be overridden by explicit command line options. | |
# savestate_directory = |
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 | |
/** | |
* Implements hook_node_view(). | |
* | |
* Using Taxonomy Menu and you want your breadcrumbs / active trail to follow suit? | |
* This snippet will handle that so that your breadcrumbs can / might look like this: | |
* | |
* home >> term A >> subterm B >> node title | |
* | |
* How to use: |
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
var urls = ['url', 'url2']; | |
artoo.ajaxSpider( | |
function(i) { | |
return urls[i]; | |
}, | |
{ | |
process: function(data, i) { | |
var inv = $(data).find('.classname').text(); | |
var url = urls[i]; | |
return [url, inv]; |
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>"; |
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(); |
OlderNewer