Skip to content

Instantly share code, notes, and snippets.

<?php
class myPDO {
var $driver = 'mysql';
var $host = 'localhost';
var $dbname = 'database';
var $username = 'username';
var $password = 'password';
var $charset = 'utf8';
@LQ80
LQ80 / renderpdf.html
Last active November 10, 2018 11:04 — forked from fcingolani/index.html
How to render a full PDF using Mozilla's pdf.js
<html>
<body>
<!-- really dirty! this is just a test drive ;) -->
<script type="text/javascript" src="https://raw.github.com/mozilla/pdf.js/gh-pages/build/pdf.js"></script>
<script type="text/javascript">
function renderPDF(url, canvasContainer, options) {
var options = options || { scale: 1 };
@LQ80
LQ80 / w3css-template-01.html
Last active April 17, 2018 11:32
W3.CSS Template - 01
<!DOCTYPE html>
<html dir="rtl">
<title>W3.CSS Template</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://www.w3schools.com/lib/w3-theme-black.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<style>