Skip to content

Instantly share code, notes, and snippets.

Michael Prasuhn mikeyp

Block or report user

Report or block mikeyp

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mikeyp / honeybadger.module
Created Jun 21, 2013
Lets play a game. Do you think it's possible to un-check "Emergency" on the settings form, and save that change?
View honeybadger.module
* Form builder for settings form.
function honeybadger_settings_form($form, &$form_state) {
$form['honeybadger_api_key'] = array(
'#type' => 'textfield',
'#title' => t(' API key'),
'#default_value' => variable_get('honeybadger_api_key'. ''),
View _layout.scss
footer {
.container {
@include outerRow();
footer {
View drush-help.txt
Global options (see `drush topic core-global-options` for the full list):
-d, --debug Display even more information, including internal messages.
-h, --help This help system.
-n, --no Assume 'no' as answer to all prompts.
-r <path>, --root=<path> Drupal root directory to use (default: current directory).
-s, --simulate Simulate all relevant actions (don't actually change the system).
-l <>, URI of the drupal site to use (only needed in multisite environments or when running on an alternate port).
View gist:6993726
protected function get_entity_type() {
$class = get_class($this);
$types = entity_get_info();
foreach ($types as $entity_type => $info) {
if (isset($info['entity class']) && $class == $info['entity class']) {
return $entity_type;
View phpunit
mdp ~/www/8/core (8.x): time ./vendor/bin/phpunit tests/Drupal/Tests/Core/Access/AccessManagerTest.php
PHPUnit 3.7.21 by Sebastian Bergmann.
Configuration read from /Users/mdp/www/8/core/phpunit.xml.dist
Time: 0 seconds, Memory: 6.25Mb
OK (24 tests, 99 assertions)
View markup.html
<a href="#" class="read-more">Read more</a>
View FakePDO.php
* @file
* Fake db statement wrapper to make mssql_query work more like PDO.
* Class FakePDO
View Gemfile
source ''
gem 'compass'
gem 'zurb-foundation'
gem 'guard-compass'
gem 'guard-livereload'
View gremlins.js minified bookmarklet
(function (e, a, h, f, c, b, d) {
c = a.createElement("script");
c.type = "text/javascript";
c.src = "";
c.onload = c.onreadystatechange = function () {
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
View Gemfile
source ""
# Gems
gem 'nanoc'
gem 'adsf'
gem 'kramdown'
gem 'compass'
# Guard support
gem 'guard'
You can’t perform that action at this time.