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
[2020-05-16 19:29:29] local.ERROR: Malformed UTF-8 characters, possibly incorrectly encoded {"exception":"[object] (InvalidArgumentException(code: 0): Malformed UTF-8 characters, possibly incorrectly encoded at /home/vagrant/code/madcapengland.local/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php:75) | |
[stacktrace] | |
#0 /home/vagrant/code/site/vendor/symfony/http-foundation/JsonResponse.php(50): Illuminate\\Http\\JsonResponse->setData() | |
#1 /home/vagrant/code/site/vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(31): Symfony\\Component\\HttpFoundation\\JsonResponse->__construct() | |
#2 /home/vagrant/code/site/vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(99): Illuminate\\Http\\JsonResponse->__construct() | |
#3 /home/vagrant/code/site/vendor/laravel/telescope/src/Http/Controllers/EntryController.php(40): Illuminate\\Routing\\ResponseFactory->json() | |
#4 [internal function]: Laravel\\Telescope\\Http\\Controllers\\EntryController->index() | |
#5 /home/vagrant/code/site/vend |
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
import del from 'del'; | |
import gulp from 'gulp'; | |
import sass from 'gulp-sass'; | |
import rename from 'gulp-rename'; | |
import cleanCSS from 'gulp-clean-css'; | |
import autoprefixer from 'gulp-autoprefixer'; | |
import sourcemaps from 'gulp-sourcemaps'; | |
import scssLint from 'gulp-scss-lint'; | |
/** |
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
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"file_exclude_patterns": | |
[ | |
".DS_Store" |
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
let ingredients = ['Pepper', 'Apples', 'Bananas']; | |
function sortAlphabetical(array, reverse) { | |
// Regex alphabetical characters only. | |
const AcceptableCharacters = /^[a-zA-Z ]*$/; | |
// Check to see if each item starts with an alphbetical | |
// character. If not, then the array isn't vaild. | |
array.map((item) => { |
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
import Express from 'express'; | |
import Nunjucks from 'nunjucks'; | |
import BodyParser from 'body-parser'; | |
import cookieParser from 'cookie-parser'; | |
import session from 'express-session'; | |
import * as Config from './config'; | |
import * as LocalConfig from './locals'; | |
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
<% if $Persons %> | |
<% loop $Persons %> | |
$Name | |
$Description | |
$Photo.SetWidth(80) | |
<% end_loop %> | |
<% end_if %> |
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 PersonAdmin extends ModelAdmin { | |
private static $managed_models = array( | |
'Person' | |
); | |
private static $menu_title = 'Persons'; |
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 ContactPage extends Page { | |
private static $db = array( | |
'Email' => 'Varchar(250)', | |
'AddressLine1' => 'Varchar(64)', | |
'AddressLine2' => 'Varchar(64)', | |
'AddressLine3' => 'Varchar(64)', | |
'AddressCity' => 'Varchar(64)', |
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 AboutPage extends Page { | |
private static $db = 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
<?php | |
class Person extends DataObject { | |
private static $has_one = array( | |
'Photo' => 'Image', | |
); | |
private static $db = array( | |
'FirstName' => 'Varchar(32)', |
NewerOlder