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
| document.getElementsByTagName('button')[0].onclick = function () { | |
| scrollTo(document.body, 0, 1250); | |
| } | |
| function scrollTo(element, to, duration) { | |
| var start = element.scrollTop, | |
| change = to - start, | |
| currentTime = 0, | |
| increment = 20; | |
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 | |
| /** | |
| * @file | |
| * Class PdfParser | |
| * | |
| * @author : Sebastien MALOT <[email protected]> | |
| * @date : 2013-08-08 | |
| * | |
| * References : |
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 | |
| function import_csv_to_sqlite(&$pdo, $csv_path, $options = array()) | |
| { | |
| extract($options); | |
| if (($csv_handle = fopen($csv_path, "r")) === FALSE) | |
| throw new Exception('Cannot open CSV file'); | |
| if(!$delimiter) | |
| $delimiter = ','; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Blank HTML5</title> | |
| <style> | |
| </style> | |
| </head> | |
| <body> |
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
| ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII | |
| UTF-8 | |
| ISO-10646-UCS-2 UCS-2 CSUNICODE | |
| UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11 | |
| UCS-2LE UNICODELITTLE | |
| ISO-10646-UCS-4 UCS-4 CSUCS4 | |
| UCS-4BE | |
| UCS-4LE | |
| UTF-16 | |
| UTF-16BE |
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
| <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 }; |
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 | |
| header("Content-type: application/json; charset=utf-8"); | |
| /* something... */ | |
| ?> |
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 | |
| $fileName = $_FILES['afile']['name']; | |
| $fileType = $_FILES['afile']['type']; | |
| $fileContent = file_get_contents($_FILES['afile']['tmp_name']); | |
| $dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent); | |
| $json = json_encode(array( | |
| 'name' => $fileName, | |
| 'type' => $fileType, | |
| 'dataUrl' => $dataUrl, |
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 | |
| $home1="sunrise-sunset-day_".$sun_value."_"; | |
| //$bgcolor="#898989"; | |
| //$tablecolor = "#675645"; | |
| //$fontcolor = "#EE49DD"; | |
| //$tableborder = "458866"; | |
| //Edit the below three lines to change the colors (Look and Feel of the calander). | |
| //The default values are shown in the above lines | |
| $bgcolor="#4B9E03"; |
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
| { | |
| "nodes": [ | |
| { | |
| "name": "Myriel", | |
| "group": 1 | |
| }, | |
| { | |
| "name": "Napoleon", | |
| "group": 1 | |
| }, |