Skip to content

Instantly share code, notes, and snippets.

<!doctype>
<html>
<head>
</head>
<body>
<?php
require_once "Classes/PHPExcel.php";
$tmpfname = "test.xlsx";
<!doctype>
<html>
<head>
</head>
<body>
<?php
require_once "Classes/PHPExcel.php";
//$tmpfname = "test.xlsx";
<?php
require_once 'Classes/PHPExcel.php';
$objPHPExcel = new PHPExcel();
$objPHPExcel->getActiveSheet()->setCellValue('A1', 'hello world!');
$objPHPExcel->getActiveSheet()->setTitle('Chesse1');
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="helloworld.xlsx"');
<html>
<head>
<script src="jquery.min.js"></script>
<script src="fabric.min.js"></script>
</head>
<body>
<canvas id="c" width="800" height="600"></canvas>
<input id="b" type="button" value="Go right" />
<script>
var canvas = new fabric.Canvas('c');
<html>
<head>
<script src="jquery.min.js"></script>
<script src="fabric.min.js"></script>
</head>
<body>
<canvas id="c" width="800" height="600"></canvas>
<script>
var canvas = new fabric.Canvas('c');
<html>
<head>
<script src="jquery.min.js"></script>
<script src="fabric.min.js"></script>
</head>
<body>
<canvas id="c" width="800" height="600"></canvas>
<script>
var canvas = new fabric.Canvas('c');
<html>
<head>
<script src="jquery.min.js"></script>
<script src="fabric.min.js"></script>
</head>
<body>
<canvas id="c" width="800" height="600"></canvas>
<script>
var canvas = new fabric.Canvas('c');
<html>
<head>
<script src="jquery.min.js"></script>
<script src="fabric.min.js"></script>
<script src="FileSaver.min.js"></script>
<script src="canvas-toBlob.js"></script>
</head>
<body>
<canvas id="c" width="800" height="600"></canvas>
<input id="b" type="button" value="Save as Image" />
<html>
<head>
<script src="jquery.min.js"></script>
<link rel="stylesheet" href="styles/default.css">
<script src="highlight.pack.js"></script>
</head>
<body>
<pre><code class="javascript">var test;
alert(1+1);</code></pre>
<input id="b" type="button" value="highlight!" />
<html>
<head>
<script src="jquery.min.js"></script>
<link rel="stylesheet" href="styles/default.css">
<script src="highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<pre><code class="javascript">var test;
alert(1+1);</code></pre>