Skip to content

Instantly share code, notes, and snippets.

// TODO: be life good

William C�rrea wilcorrea

// TODO: be life good
View GitHub Profile
View index.php
# allow all methods
header('Access-Control-Allow-Methods: POST, GET, PUT, PATCH, DELETE, OPTIONS');
# allow some headers
header('Access-Control-Allow-Headers: Authorization, Bearer, Device, Origin, Accept, Content-Type');
# allow expose some headers
header('Access-Control-Expose-Headers: Authorization, Bearer, Device');
# get the request method
$method = $_SERVER['REQUEST_METHOD'] ?? null;
View TransactionHistory.vue
style="min-height: calc(30vh + 40px)"
<QCardSection class="row">
<div class="col-sm-6 flex justify-sm-center justify-start items-center">
<div class="q-mb-md text-weight-medium">
{{ $lang('pages.dashboard.index.charts.transaction-history') }}
View ExampleSchema.ts
import Schema from '@devitools/Agnostic/Schema'
import Service from './InviteService'
import { domain } from '../settings'
import { Component, Context, SchemaTable } from '@devitools/Agnostic/Helper/interfaces'
import { positions, scopes, SCOPES } from '@devitools/Agnostic/enum'
import { unique } from '@devitools/Util/general'
import { RULES } from 'src/settings/schema'
import { replacement } from '@devitools/Util/string'
wilcorrea / Dockerfile
Last active Aug 21, 2020
Quasar with docker
View Dockerfile
# tevun/quasar
FROM node:alpine
RUN apk --update add openssh-client git
RUN npm install --global \
@vue/cli@4.5.4 && \
@vue/cli-init@4.5.4 \
View register-service-worker.js
import { Loading, Notify } from 'quasar'
import { register } from 'register-service-worker'
import $lang from '@devitools/Lang'
// The ready(), registered(), cached(), updatefound() and updated()
// events passes a ServiceWorkerRegistration instance in their arguments.
// ServiceWorkerRegistration:
register(process.env.SERVICE_WORKER_FILE, {
// The registrationOptions object will be passed as the second argument
View docker-compose.yml
version: '3'
# Networks
# Internal network
driver: bridge
# Volumes
View Category.php
namespace Source\Domains\General;
use Devitools\Persistence\AbstractModel;
* Class Category
View QPhoneInternational.vue
v-bind="{ ...$attrs, ...$props }"
@clear="$emit('input', '')"
View docker-php-ext-xdebug.ini
xdebug.auto_trace = Off
xdebug.cli_color = 1
xdebug.collect_assignments = Off
xdebug.collect_includes = On
xdebug.collect_params = 0
xdebug.collect_return = Off
xdebug.collect_vars = Off
xdebug.coverage_enable = On
xdebug.default_enable = On
xdebug.dump_globals = On
wilcorrea / ProductTable.vue
Last active Mar 25, 2020
Fazer funcionar filtro conforme valor do combobox
View ProductTable.vue
<va-card :title="$t('menu.products')">
<div class="row">
<div class="flex xs12 md4">
You can’t perform that action at this time.