Skip to content

Instantly share code, notes, and snippets.

View bookwyrm's full-sized avatar

Matt Vanderpol bookwyrm

View GitHub Profile
<nav
class="elementor-pagination"
role="navigation"
aria-label="Pagination"
>
<span class="page-numbers prev">« Previous</span>
<span aria-current="page" class="page-numbers current"
><span class="elementor-screen-only">Page</span>1</span
>
<a
@bookwyrm
bookwyrm / reading-plan.md
Created June 7, 2019 15:15
Atomic Habits Reading Planning

Atomic Habits Reading Planning

  • Introduction - 10 pages
  • Part 1 - The Fundamentals - 45 pages - 6/17
    • Ch 1 - 16 pages
    • Ch 2 - 14 pages
    • Ch 3 - 15 pages
  • Part 2 - The 1st Law - 41 pages - 7/8
    • Ch 4 - 10 pages
    • Ch 5 - 12 pages
    • Ch 6 - 10 pages
required(:hes_sfr_att_townhome_position_post).maybe(:str?).when(:not_left_or_middle?).when(:not_front_represents_all_types?) do
value(:hes_right_side_windows_area_post).filled?
end
required(:hes_sfr_att_townhome_position_post).maybe(:str?).when(:not_left_or_middle?) do
value(:hes_right_side_windows_frame_post).valid_window_frame?
end
required(:hes_sfr_att_townhome_position_post).maybe(:str?).when(:not_left_or_middle?) do
value(:hes_right_side_windows_glass_layers_post).filled?
end
Handlebars.registerHelper('data-type', function(arg) {
if ( arg.indexOf('image/svg') !== -1 ) {
return 'svg';
} else if ( arg.indexOf('image/png') !== -1 ) {
return 'png';
} else {
return 'png-fallback';
}
});
${{prefix}}{{name}}-{{data-type datauri}}: '{{prefix}}{{name}}', '{{datauri}}', {{height}}, {{width}};
// scss-lint:disable TrailingSemicolon
$sprites-svg:
{{#each icons}}
{{#with this}}
${{prefix}}{{name}}-svg,
{{/with}}
{{/each}}
;
$sprites-png:
class ReportsController < ApplicationController
include Trailblazer::Operation::Controller
def create
run Report::Create do |op|
flash[:notice] = "Created Report for \"#{op.work_scope_report.title}\""
return redirect_to work_scope_report_path(op.work_scope_report)
end
@wsr = WorkScopeReport.find(params[:work_scope_report_id])
@bookwyrm
bookwyrm / SassMeister-input.scss
Created June 29, 2015 13:27
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
@import "true";
// From Thoughtbot's Bourbon
/// Converts shorthand to the 4-value syntax.
///
/// @param {List} $shorthand
@bookwyrm
bookwyrm / change-admin-user-id.sql
Created June 24, 2015 13:33
Walkthrough: Setting up a Secure WordPress Site with Git – Part 2
UPDATE wp_EkUMs54Z_users SET ID = 10 WHERE ID = 1; -- update user id
UPDATE wp_EkUMs54Z_usermeta SET user_id = 10 WHERE user_id = 1; -- retain permissions
ALTER TABLE wp_EkUMs54Z_users AUTO_INCREMENT = 11; -- make sure auto increment stays correct
@bookwyrm
bookwyrm / cleaning-up-themes-and-plugins.sh
Last active August 29, 2015 14:23
Walkthrough: Setting up a Secure WordPress Site with Git
cd wp-content/plugins/
rm hello.php
cd ../themes/
rm -fR twentyten twentyeleven twentytwelve twentythirteen twentyfourteen
cd ../../
git commit -am 'Deleting unused themes and plugins'