Skip to content

Instantly share code, notes, and snippets.

@bassettsj
bassettsj / _layout.scss
Created February 24, 2014 19:28
mixin-issue
.gbz-content-meta {
width: 100%;
padding-top: 2.5em;
@include make-sm-column(md) {
padding-top: 0
}
<!-- Example item to add -->
<div class="masonry-item views-row views-row-6 views-row-even thumbnail masonry-brick" style="position: absolute; top: 282px; left: 490px;">
<div class="ds-1col user-profile view-mode-gbz_featured_event_speaker clearfix">
<div class="speaker-popover-trigger" data-original-title="" title="">
<a href="/event-speaker-details/26955?width=500&amp;height=500&amp;rel=event-speaker" class="colorbox-load event-speaker init-colorbox-load-processed cboxElement">
<img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNlZWUiPjwvcmVjdD48dGV4dCB0ZXh0LWFuY2hvcj0ibWlkZGxlIiB4PSIxMDAiIHk9IjEwMCIgc3R5bGU9ImZpbGw6I2FhYTtmb250LXdlaWdodDpib2xkO2ZvbnQtc2l6ZToxM3B4O2ZvbnQtZmFtaWx5OkFyaWFsLEhlbHZldGljYSxzYW5zLXNlcmlmO2RvbWluYW50LWJhc2VsaW5lOmNlbnRyYWwiPjIwMHgyMDA8L3RleHQ+PC9zdmc+" alt="200x200" data-src="holder.js/
# Requires holder.js
jQuery ($) ->
$( ->
fillHolder = ->
width = $(@).attr('width') or 200
height = $(@).attr('height') or 200
ufia-models is unable to load activerecord-import
== FixBadReplacementOfGenericFile: migrating =================================
-- rename_column(:trophies, :nu_core_file_id, :generic_file_id)
rake aborted!
An error has occurred, this and all later migrations canceled:
Missing column trophies.nu_core_file_id/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/connection_adapters/sqlite_adapter.rb:456:in `rename_column'
/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `block in method_missing'
/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `block in say_with_time'
/home/vagrant/.rvm/gems/ruby-2.0.0-p247/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time'
# encoding: UTF-8
# This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition.
#
# Note that this schema.rb definition is the authoritative source for your
# database schema. If you need to create the application database on another
# system, you should be using db:schema:load, not running all the migrations
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
{
"vars": {
"@brand-primary": "#330000"
},
"css": [
"print.less",
"type.less",
"code.less",
"grid.less",
"tables.less",
@bassettsj
bassettsj / a11y_drupal.make
Last active January 3, 2016 01:39
Accessible Drush Make File for Drupal Package Management
; ----------------
; Generated makefile from http://drushmake.me
; Permanent URL: http://drushmake.me/file.php?token=02f0ef8a2e70
; ----------------
;
; This is a working makefile - try it! Any line starting with a `;` is a comment.
; Core version
; ------------
; Each makefile should begin by declaring the core version of Drupal that all
@bassettsj
bassettsj / errormessage.log
Created December 16, 2013 23:19
_menu_router_save() error
agrant@kala:/var/www/sinberbest$ drush cc all
WD menu: PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null: INSERT INTO [error]
{menu_router} (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments,
delivery_callback, fit, number_parts, context, tab_parent, tab_root, title, title_callback, title_arguments, theme_callback,
theme_arguments, type, description, position, weight, include_file) VALUES (:db_insert_placeholder_0,
:db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4,
:db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8,
:db_insert_placeholder_9, :db_insert_placeholder_10, :db_insert_placeholder_11, :db_insert_placeholder_12,
:db_insert_placeholder_13, :db_insert_placeholder_14, :db_insert_placeholder_15, :db_insert_placeholder_16,
:db_insert_placeholder_17, :db_insert_placeholder_18, :db_insert_placehold
RSolr::Error::Http - 400 Bad Request
Error: {'responseHeader'=>{'status'=>400,'QTime'=>2,'params'=>{'sort'=>'system_create_si desc','f.type_sim.facet.limit'=>'6','f.drs_degree_ssim.facet.limit'=>'6','spellcheck.q'=>'{!lucene q.op=AND df=depositor_tesim}-','f.drs_department_ssim.facet.limit'=>'6','f.creator_sim.facet.limit'=>'6','qf'=>'title_tesim abstract_tesim genre_tesim subject_topic_tesim creator_tesim origin_info_publisher_tesim origin_info_place_tesim identifier_tesim','f.subject_sim.facet.limit'=>'6','f.drs_course_number_ssim.facet.limit'=>'6','f.creation_year_sim.facet.limit'=>'6','wt'=>'ruby','rows'=>'4','defType'=>'dismax','pf'=>'title_tesim','q'=>'{!lucene q.op=AND df=depositor_tesim}-','f.drs_course_title_ssim.facet.limit'=>'6','facet.field'=>['creator_sim','creation_year_sim','drs_department_ssim','drs_degree_ssim','drs_course_number_ssim','drs_course_title_ssim','subject_sim','type_sim'],'qt'=>'search','fq'=>['edit_access_group_ssim:public OR discover_access_group_ssim:public OR read_access_grou
create_table "users", :force => true do |t|
t.string "email", :default => "", :null => false
t.string "encrypted_password", :default => "", :null => false
t.string "reset_password_token"
t.datetime "reset_password_sent_at"
t.datetime "remember_created_at"
t.integer "sign_in_count", :default => 0
t.datetime "current_sign_in_at"
t.datetime "last_sign_in_at"
t.string "current_sign_in_ip"