Skip to content

Instantly share code, notes, and snippets.

View soundslikeinfo's full-sized avatar
🥳
Just upgraded to GIt Pro

Sounds Like Info soundslikeinfo

🥳
Just upgraded to GIt Pro
  • Phoenix, Az.
  • 22:25 (UTC -07:00)
View GitHub Profile
@soundslikeinfo
soundslikeinfo / wp-bootstrap4.1-pagination.php
Last active November 29, 2019 22:53 — forked from mtx-z/wp-bootstrap4.4-pagination.php
[Wordpress Bootstrap 4.1 pagination (with custom WP_Query() and global $wp_query support)] #unlabeled
<?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 4.9.5
@soundslikeinfo
soundslikeinfo / window-height-width.js
Last active November 29, 2019 22:54 — forked from joshcarr/window-height-width.js
[vanilla JS window width and height] #unlabeled
// vanilla JS window width and height
var w=window,
d=document,
e=d.documentElement,
g=d.getElementsByTagName('body')[0],
x=w.innerWidth||e.clientWidth||g.clientWidth,
y=w.innerHeight||e.clientHeight||g.clientHeight;
@soundslikeinfo
soundslikeinfo / hb_all_books_dl.js
Created November 17, 2020 20:00 — forked from barrywoolgar/hb_all_books_dl.js
Humble bundle book bundles - download all books at once
/*
After purchasing a humble book bundle, go to your download page for that bundle.
Open a console window for the page and paste in the below javascript.
This will download all the books in all the formats available.
*/
$('a').each(function(i){
if (['MOBI', 'PDF', 'EPUB'].indexOf($.trim($(this).text())) >= 0) {
$('body').append('<iframe id="dl_iframe_'+i+'" style="display:none;">');
document.getElementById('dl_iframe_'+i).src = $(this).data('web');
}