This file contains hidden or 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 Database { | |
private static $instance = null; | |
public static function get() { | |
if(self::$instance === null) { | |
try { | |
self::$instance = new PDO('mysql:host=localhost;dbname=site;charset=utf8', 'kraken', 'public'); | |
self::$instance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | |
self::$instance->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); |
This file contains hidden or 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
* { | |
position: relative; | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
font-family: 'Roboto', sans-serif; | |
font-weight: 400; | |
font-size: 12px; | |
color: #777; | |
cursor: default; |
This file contains hidden or 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 | |
/** | |
* Case-insensitive in_array() wrapper. | |
* | |
* @param mixed $needle Value to seek. | |
* @param array $haystack Array to seek in. | |
* | |
* @return bool | |
*/ |
This file contains hidden or 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
.clearfix:before, | |
.clearfix:after { | |
content: " "; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} |
This file contains hidden or 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
/* | |
* Grid | |
*/ | |
.cols { | |
display: block; | |
} | |
.cols > [class*='col-'] { | |
display: inline-block; | |
float: left; |
This file contains hidden or 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
<div class="slate slideshow mrg-btm-msv"> | |
<div class="slide" style="background-image:url('../assets/images/landing.jpg');"> | |
<div class="float-box"> | |
<div class="content pull-ver-center"> | |
<h4 class="mrg-btm-med">Project Management</h4> | |
<h5 class="mrg-btm-lrg">In vestibulum neque in purus condimentum, non mattis tortor lobortis.</h5> | |
<div class="buttons"> | |
<a class="btn btn-invert mrg-rgt" href="#">Learn more<i class="fa fa-fw fa-angle-right"></i></a> | |
<a class="btn btn-invert" href="#">Get started<i class="fa fa-fw fa-angle-right"></i></a> | |
</div> |
This file contains hidden or 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
RewriteEngine On | |
RewriteBase / | |
# RewriteCond %{HTTPS} !=on | |
# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME}.php -f | |
RewriteRule ^(.+?)/?$ $1.php [L] |
This file contains hidden or 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
/** | |
* Flexbox | |
*/ | |
.flexbox { | |
display: flex; | |
flex-direction: row; | |
flex-wrap: wrap; | |
justify-content: center; | |
align-items: center; |
This file contains hidden or 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
* { | |
margin: 0; | |
padding: 0; | |
position: relative; | |
box-sizing: border-box; | |
font-family: 'Roboto', sans-serif; | |
font-weight: 400; | |
text-decoration: none; | |
color: #868e96; | |
cursor: default; |
OlderNewer