Set by Tom Smith and Michael Cronnelly
- JavaScript
Some positive integers n have the property that the sum of (n + reverse(n)) consists entirely of odd digits.
| create : { | |
| contentId: 'fefewfew', | |
| userId: [optional] | |
| } | |
| get : contentId, userId | |
| [{ | |
| contentId: 'blah' | |
| count: 10, | |
| userLiked: true |
| <?php | |
| /** | |
| * @ORM\Entity | |
| * @ORM\Table(name="student") | |
| * | |
| */ | |
| class Student { | |
| /** |
| <?php | |
| require_once("PHPExcel/PHPExcel.php"); | |
| $phpExcel = new PHPExcel(); | |
| $styleArray = array( | |
| 'font' => array( | |
| 'bold' => true, | |
| ) | |
| ); |
| <?php | |
| $phpExcel = new PHPExcel(); | |
| $phpExcel->getActiveSheet()->setTitle("My Sheet"); | |
| $phpExcel->setActiveSheetIndex(0); | |
| header("Content-Type: application/vnd.ms-excel"); | |
| header("Content-Disposition: attachment; filename=\"filename.xls\""); | |
| header("Cache-Control: max-age=0"); | |
| $objWriter = PHPExcel_IOFactory::createWriter($phpExcel, "Excel5"); |
| <?php | |
| $sheet->setCellValue("A1", "Text") | |
| ->setCellValue("A2", "Text") | |
| ->setCellValue("A3", "Text") | |
| ->setCellValue("A4", "Text") | |
| ->setCellValue("A5", "Text"); |
| <?php | |
| $sheet->setCellValue("A1", "Text"); | |
| $sheet->setCellValue("A2", "Text"); | |
| $sheet->setCellValue("A3", "Text"); | |
| $sheet->setCellValue("A4", "Text"); | |
| $sheet->setCellValue("A5", "Text"); |
| <?php | |
| header('Content-Type: application/vnd.ms-excel'); | |
| header('Content-Disposition: attachment;filename=" ' . "Report" . '.xls"'); | |
| header('Cache-Control: max-age=0'); | |
| $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); | |
| $objWriter->save('php://output'); | |
| exit; |