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
| // @/helpers/ckeditor.js | |
| const advanceEditorConfig = { | |
| toolbar: { | |
| items: [ | |
| 'heading', '|', 'fontColor', 'highlight', '|', | |
| 'bold', 'italic', 'underline', 'strikethrough', '|', 'alignment', '|', 'numberedList', | |
| 'bulletedList', '|', 'indent', 'outdent', '|', 'link', 'insertTable', '|', | |
| 'pageBreak', '|', 'undo', 'redo' | |
| ], | |
| }, |
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 | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| use Symfony\Component\Process\Exception\ProcessFailedException; | |
| use Symfony\Component\Process\Process; | |
| class Pdf_version_converter | |
| { | |
| private $gsPath; | |
| private $baseCommand = '%s -sDEVICE=pdfwrite -dCompatibilityLevel=%s -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=%s %s'; |
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 | |
| /** | |
| * Grouping an array by `type` and `bank`, | |
| * but when the `amount` is different for the same `name` (people) | |
| * it must in another group | |
| */ | |
| echo '<pre>'; | |
| $array = [ |
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
| <!-- Using Google Docs --> | |
| <iframe | |
| src="https://docs.google.com/gview?embedded=true&url=YOUR-FILE-URL" | |
| style="width: 100%; height: 500px" | |
| > | |
| <p>Your browser is not supported.</p> | |
| </iframe> | |
| <!-- Using Ms. Office --> | |
| <iframe |
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 | |
| /** | |
| * Gets the last Sunday of the month for a given date. | |
| * | |
| * @param string $dateString The input date in 'Y-m-d' format. | |
| * @return string The last Sunday of the month in 'Y-m-d' format. | |
| */ | |
| function getLastSunday($dateString) | |
| { |
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 | |
| defined('BASEPATH') OR exit('No direct script access allowed'); | |
| use ChangeCase\ChangeCase; | |
| class Paging { | |
| private $ci; | |
| private $qb; |
OlderNewer