Skip to content

Instantly share code, notes, and snippets.

View ThePaulMcBride's full-sized avatar
🚀

Paul McBride ThePaulMcBride

🚀
View GitHub Profile
FROM gitpod/workspace-full-vnc
ENV RUBY_VERSION=2.7.2
ENV NODE_VERSION=16.18.0
ENV PGWORKSPACE="/workspace/.pgsql"
ENV PGDATA="$PGWORKSPACE/data"
# Install PostgreSQL
RUN sudo install-packages postgresql-12 postgresql-contrib-12
<?php
function get_pagination($query, $per_page, $paged){
$query->query_vars['posts_per_page'] = 9999999;
$query->query_vars['paged'] = 0;
$query->query($query->query_vars);
if ( $query && $query->have_posts() ) :
$num_posts = $query->post_count;
@ThePaulMcBride
ThePaulMcBride / RegistrationController.php
Created March 22, 2016 17:08
A class for creating custom user registration forms in WordPress. Easy to amend as needed.
<?php
class RegistrationController
{
private $username;
private $email;
private $password;
private $errors;
function __construct()