I hereby claim:
- I am robballou on github.
- I am rballou (https://keybase.io/rballou) on keybase.
- I have a public key whose fingerprint is E74A 8772 D3C3 1E32 F158 843B C1E4 C268 BD49 DC68
To claim this, I am signing this object:
div.component.newest-members-module {display:none;} | |
div.module.wtf-module.js-wtf-module.has-content {display:none;} |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Disable a view or views | |
* | |
* @param mixed $disable_views | |
* An array of view machine names or a machine name to disable | |
*/ | |
function example_disable_views($disable_views = array()) { | |
if (!is_array($disable_views)) { | |
$disable_views = array($disable_views); |
.editor .wrap-guide { | |
display: none; | |
height: 0; | |
overflow: hidden; | |
} |
<?php | |
/** | |
* Implements hook_drush_command(). | |
*/ | |
function example_drush_command() { | |
$commands = array(); | |
$commands['stub-content'] = array( | |
'callback' => 'drush_stub_content', |
The following is a link to add an Alfred app web search for Atom packages.
Atom editor packages search
// The hacky bit of this approach is that this module uses | |
// jQuery, but it is not referenced here. This is because I | |
// am populating it in the test via global namespace. | |
// | |
// In the browser this still works because I am adding jQuery | |
// via a Browserify transform (browserify-global-shim). | |
function someModule() { | |
} | |
modules.export = someModule; |
// Reads stdin and divides that into the output trasnform | |
// | |
// Usage: pbpaste | node output_data.js | pbcopy | |
var _ = require('lodash'); | |
process.stdin.setEncoding('utf8'); | |
var data = []; | |
process.stdin.on('readable', function() { |
<?php | |
$rule = 'some_rule'; | |
$config = db_query('SELECT data FROM rules_config WHERE name=:name', array(':name' => $rule))->fetchColumn(0); | |
$rule_config = json_decode(unserialize($config)->export()); | |
// $rule_config = $rule_config->$rule->DO[0]->rule->thing->value->settings; |
<?php | |
assert_options(ASSERT_ACTIVE, TRUE); | |
\Drupal\Component\Assertion\Handle::register(); | |
$databases = [ | |
'default' => [ | |
'default' => [ | |
'driver' => 'mysql', | |
'database' => '', | |
'username' => '', |