This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RegistrationController | |
{ | |
private $username; | |
private $email; | |
private $password; | |
private $errors; | |
function __construct() |