Skip to content

Instantly share code, notes, and snippets.

View gillespieza's full-sized avatar

A Dominy gillespieza

View GitHub Profile
@gillespieza
gillespieza / jquery-bootstrap-datepicker.scss
Last active September 5, 2018 12:55 — forked from gabrieljenik/jquery-bootstrap-datepicker.css
jQuery UI Datepicker Bootstrap 4 SASS
.ui-datepicker {
background-color: $white;
border: 1px solid $primary;
border-radius: $border-radius;
box-shadow: 0 0 8px rgba(102,175,233,.6);
display: none;
margin-top: $spacer * 0.5;
padding: $spacer * 0.5;
width: 240px;
font-family: $font-family-base;
@gillespieza
gillespieza / pluralsight video downloader.js
Created April 17, 2020 12:23 — forked from dennisja/pluralsight video downloader.js
A simple script to download pluralsight courses in the browser console.
// open all sections
$$('section.module:not(.open) header').forEach((h) => h.click());
// get all list course videos in each section
let listItems = $$('section.module li');
// download them
for (let i = 0; i < listItems.length; i++) {
let listItem = listItems[i];
let title = listItem.querySelector('h3').textContent;
@gillespieza
gillespieza / wp-bootstrap4.4-pagination.php
Created April 9, 2020 14:33 — forked from mtx-z/wp-bootstrap4.4-pagination.php
Wordpress Bootstrap 4.4 pagination (with custom WP_Query() and global $wp_query support)
<?php
/**
* @param WP_Query|null $wp_query
* @param bool $echo
*
* @return string
* Accepts a WP_Query instance to build pagination (for custom wp_query()),
* or nothing to use the current global $wp_query (eg: taxonomy term page)
* - Tested on WP 5.3