Não use UUID
como PK nas tabelas do seu banco de dados.
{ | |
field: 'bancos_bacen_id', | |
label: 'Banco', | |
type: 'select-server', | |
action: 'bancos/getData', | |
rules: [v.required], | |
class: 'col-6', | |
onChange() {}, | |
}, |
<?php | |
/* vars for export */ | |
// database record to be exported | |
$db_record = 'XXX_TABLE_NAME_XXX'; | |
// optional where query | |
$where = 'WHERE 1 ORDER BY 1'; | |
// filename for export | |
$csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv'; | |
// database variables |
Angular Language Service
https://marketplace.visualstudio.com/items?itemName=Angular.ng-template
Angular2 Inline
https://marketplace.visualstudio.com/items?itemName=natewallace.angular2-inline
Angular2 Switcher
https://marketplace.visualstudio.com/items?itemName=infinity1207.angular2-switcher
- Apache Conf (Apache config highlighting)
- Auto Close Tag (HTML/XML stuff)
- Badges (Markdown badges snippets)
- Beautify (HTML/JS/CSS/SASS formatting)
- Bower (Bower management)
- Code Runner (code runner - d'oh!)
- Color Info (CSS color info tooltips)
- Composer(Composer management)
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
This launchd script will ensure that your Docker environment on your Mac will have 10.254.254.254
as an alias on your loopback device (127.0.0.1). The command being run is ifconfig lo0 alias 10.254.254.254
.
Once your machine has a well known IP address, your PHP container will then be able to connect to it, specifically XDebug can connect to it at the configured xdebug.remote_host
.
Copy/Paste the following in terminal with sudo (must be root as the target directory is owned by root)...
Nice answer on stackoverflow to the question of when to use one or the other content-types for POSTing data, viz. application/x-www-form-urlencoded
and multipart/form-data
.
“The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use multipart/form-data
. Otherwise, use application/x-www-form-urlencoded
.”
Matt Bridges' answer in full:
The MIME types you mention are the two Content-Type
headers for HTTP POST requests that user-agents (browsers) must support. The purpose of both of those types of requests is to send a list of name/value pairs to the server. Depending on the type and amount of data being transmitted, one of the methods will be more efficient than the other. To understand why, you have to look at what each is doing