Skip to content

Instantly share code, notes, and snippets.

View wilcorrea's full-sized avatar
🚀
// TODO: be life good

William Correa wilcorrea

🚀
// TODO: be life good
View GitHub Profile
<?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;
<template>
<QCard
bordered
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') }}
</div>
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'
<?php
namespace Hero;
class Router
{
private $routes = [];
public function on($method, $path, $callback)
{
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: https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration
register(process.env.SERVICE_WORKER_FILE, {
// The registrationOptions object will be passed as the second argument
<?php
declare(strict_types=1);
namespace Source\Domains\General;
use Devitools\Persistence\AbstractModel;
/**
* Class Category
<template>
<QField
class="AppPhoneInternational"
v-bind="{ ...$attrs, ...$props }"
@clear="$emit('input', '')"
>
<div
ref="root"
class="AppPhoneInternational__root"
/>
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
wilcorrea / ProductTable.vue
Last active March 25, 2020 19:19
Fazer funcionar filtro conforme valor do combobox
<template>
<va-card :title="$t('menu.products')">
<div class="row">
<div class="flex xs12 md4">
<va-input
:value="term"
:placeholder="$t('tables.searchByProduct')"
@input="search"
removable
>
image: docker:git
before_script:
- git config --global user.email "ci@my-compnany.com"
- git config --global user.name "My Company"
stages:
# - test
- development
- stage