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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>404 - Page Not Found!</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |
<link rel="dns-prefetch" href="//fonts.gstatic.com"> | |
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css"> |
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
<style> | |
.penguin { | |
/* change code below */ | |
--penguin-skin: gray; | |
--penguin-belly: white; | |
--penguin-beak: orange; | |
/* change code above */ | |
position: relative; |
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
{ | |
"require": { | |
"stripe/stripe-php": "^6.8", | |
"phpmailer/phpmailer": "^6.0", | |
"symfony/polyfill-mbstring": "^1.8" | |
} | |
} |
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 | |
/** | |
* You can modify preg_match_all to match your needs | |
* | |
* Extracts attribute values inside an element from html content | |
* You post html content and inside the content, you have shortcodes with attributes like [pageBreak id="home" title="Home page"] | |
* You want to extract id and title attribute values so you can save them in db as a matching pair. | |
*/ | |
$content = 'hello there [pageBreak ="home" title="Home page"] new page [/pageBreak] another page'; | |
extract($content); |
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 | |
//This function let convert BBcode to HTML | |
function bbcode_to_html($text) | |
{ | |
$text = nl2br(htmlentities($text, ENT_QUOTES, 'UTF-8')); | |
$in = array( | |
'#\[b\](.*)\[/b\]#Usi', | |
'#\[i\](.*)\[/i\]#Usi', | |
'#\[u\](.*)\[/u\]#Usi', | |
'#\[s\](.*)\[/s\]#Usi', |
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
<div style="width:500px; margin:0 auto"> | |
<div class="alertbox alertbox-info"> | |
This is an information message | |
</div> | |
<div class="alertbox alertbox-success"> | |
We have successfully processed your request! | |
</div> | |
<div class="alertbox alertbox-warning"> |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install apache2 mysql-server php72-cli git | |
sudo service apache2 start | |
sudo service mysql start | |
sudo service php7.2-fpm start | |
#Mailhog -optional | |
git clone https://github.com/mailhog/MailHog.git mailhog |
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
<iframe | |
src="your-url-here" | |
id="my_iframe" | |
style="width: 100%;" | |
border="0" | |
margin="0" padding="0" | |
frameborder="0" scrolling="no" ></iframe> |
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 if(!defined('BASEPATH')) { | |
exit('No direct script access allowed'); | |
} | |
//autoload this model | |
class My_config extends CI_Model | |
{ | |
public function __construct() | |
{ | |
$this->setLanguage(); |
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
<template> | |
<div> | |
<div class="row"> | |
<div class="col-sm-9"> | |
<button class="btn btn-success" v-on:click="dlImages()"> | |
<i class="fa fa-download"></i> | |
Download photos | |
</button> | |
<hr/> |