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 | |
| class TranslateShell extends AppShell { | |
| public function main() { | |
| $selection = $this->in('Start to create translated entries?', array('y', 'n', 'q'), 'y'); | |
| if (strtolower($selection) === 'y') { | |
| $this->out('Creating entries in i18n table...'); | |
| $this->_execute(); | |
| } |
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 | |
| $this->log($data); | |
| Cakelog::write('error', $data); | |
| // If $data is an array | |
| Cakelog::write('error', print_r($data, true)); | |
| ?> |
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
| ffmpeg -itsoffset -4 -i vts_01_1.mp4 -vcodec mjpeg -vframes 1 -an -f rawvideo vts_01_1.jpg; |
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
| .ui-datepicker { | |
| background-color: #fff; | |
| border: 1px solid #66AFE9; | |
| border-radius: 4px; | |
| box-shadow: 0 0 8px rgba(102,175,233,.6); | |
| display: none; | |
| margin-top: 4px; | |
| padding: 10px; | |
| width: 240px; | |
| } |
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
| ּ_בּ | |
| בּ_בּ | |
| טּ_טּ | |
| כּ‗כּ | |
| לּ_לּ | |
| מּ_מּ | |
| סּ_סּ | |
| תּ_תּ | |
| ٩(×̯×)۶ | |
| ٩(̾●̮̮̃̾•̃̾)۶ |
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 | |
| namespace App\Http\Controllers\Admin; | |
| use Illuminate\Http\Request; | |
| use Illuminate\Support\Carbon; | |
| use App\Http\Controllers\Controller; | |
| use Validator; | |
| use Illuminate\Support\Fluent; |
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 | |
| $registrations = Registration::whereDate('created_at', $day)->when($advisor, function($query, $advisor) { | |
| return $query->where('conseiller', $advisor); | |
| })->get(); | |
| ?> |
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
| // Put this near the top of your resources\assets\js\app.js file. | |
| import $ from 'jquery'; | |
| window.jQuery = $; | |
| window.$ = $; | |
| // Source: | |
| // https://github.com/webpack/webpack/issues/4258#issuecomment-340240162 |
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
| <!-- Datetime in iso8601 format --> | |
| Publié <span class="timeago" data-time="2019-05-20T17:54:05+02:00"></span> |
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
| // include moment.js | |
| // jquery | |
| // jquery validation | |
| $.validator.addMethod("dateFr", function(value, element) { | |
| return this.optional(element) || moment(value, "DD/MM/YYYY", true).isValid(); ; | |
| }, "Veuillez saisir une date valide au format JJ/MM/AAAA"); | |
| $.validator.addMethod("dateTimeFr", function(value, element) { | |
| return this.optional(element) || moment(value, "DD/MM/YYYY HH:mm", true).isValid(); ; |