Skip to content

Instantly share code, notes, and snippets.

View jenlampton's full-sized avatar

Jen Lampton jenlampton

View GitHub Profile
<NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL><NUL>
@jenlampton
jenlampton / perfect circles
Last active May 25, 2017 00:57
CSS only perfect circles?
/**
* Creates a perfectly square element with fluid width.
*
* WARNING: Do not add padding to this element.
*
* @include square_element();
*/
@mixin square_element() {
height: 0;
padding-bottom: 100%;
Backdrop.jsAC.prototype.populatePopup = function () {
var $input = $(this.input);
// Show popup.
if (this.popup) {
$(this.popup).remove();
}
this.selected = false;
this.popup = $('<div id="autocomplete"></div>')[0];
this.popup.owner = this;
<?php
/**
* @file
* Provides a token for building URL aliases for NGO articles.
*/
/**
* Implements hook_token_info().
*/
function example_token_token_info() {

Keybase proof

I hereby claim:

  • I am jenlampton on github.
  • I am jenlampton (https://keybase.io/jenlampton) on keybase.
  • I have a public key whose fingerprint is 5B4F 7ADD F457 04F3 43F7 81A1 74FB 416C 2168 43B9

To claim this, I am signing this object:

@jenlampton
jenlampton / backdrop-contrib-application.md
Last active March 10, 2016 19:52
Backdrop CMS Contributed Project Group Application
@jenlampton
jenlampton / drupal.inc.patch
Created September 4, 2015 02:49
possible fix for drush_drupal_version
diff --git a/includes/drupal.inc b/includes/drupal.inc
index b24dc52..f34fee2 100644
--- a/includes/drupal.inc
+++ b/includes/drupal.inc
@@ -47,15 +47,23 @@ function drush_drupal_version($drupal_root = NULL) {
}
}
else {
- // D7 stores VERSION in bootstrap.inc.
- // D6 and below does it in system.module.
@jenlampton
jenlampton / BackdropBoot.php
Last active October 9, 2015 17:48
A start on the BackdropBoot class for Drush 7.
<?php
/**
* @file
* Backdrop Boot class for Drush.
*/
namespace Drush\Boot;
class BackdropBoot extends DrupalBoot {
* - $comments: The comment-related elements for the node.
* - $comments['comments']: Rendered comments for this node.
* - $comments['comment_form']: Form for adding a new comment.