This file contains 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
upstream api { | |
server 127.0.0.1:3000 max_fails=0; | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name dominio-aqui; |
This file contains 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 | |
/** | |
* Handle dynamic, static calls to the object. | |
*/ | |
public static function __callStatic($method, $args) | |
{ | |
$instance = static::getFacadeRoot(); | |
switch (count($args)) | |
{ |
This file contains 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
const appName = 'App Web' | |
const companyName = 'D6' | |
const version = '1.0.0' | |
const hasSw = (navigator.serviceWorker && navigator.serviceWorker.controller) | |
const mode = (window.matchMedia('(display-mode: standalone)').matches) | |
? 'standalone' | |
: 'web' | |
const sw = hasSw | |
? 'sw-on' |
This file contains 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
server { | |
listen 80; | |
listen [::]:80; | |
server_name api.x.app; | |
rewrite_log on; | |
# security | |
# include shared.d/security.conf; |
This file contains 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
.vscode/ | |
.yarn/ | |
dist/ | |
coverage/ | |
public/ |
This file contains 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
/.yarn/** | |
/dist/** | |
/node_modules/** |
This file contains 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
# https://docs.aws.amazon.com/pt_br/acm/latest/userguide/acm-regions.html | |
resource "aws_acm_certificate" "this" { | |
provider = aws.virginia # need to be created at virginia (cloudfront bizarre) | |
domain_name = local.host | |
subject_alternative_names = local.alias | |
validation_method = "DNS" | |
lifecycle { | |
create_before_destroy = true |
This file contains 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
node_modules | |
dist | |
infra | |
.tmp | |
# Yarn | |
.pnp.* | |
.yarn/* | |
!.yarn/patches | |
!.yarn/plugins |
This file contains 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
const dic = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' | |
const randomInt = (max = 1000, min = 0) => Math.floor(Math.random() * (max - min)) + min | |
const randomString = () => dic.charAt(randomInt(dic.length -1, 0)) | |
const makeArray = (length, cb) => Array.from({ length }, cb) | |
const makeArrayOfStrings = length => makeArray(length, randomString) | |
const joiArr = lists => lists | |
.reduce((acc, arr) => { | |
return `${acc}${arr.join('')}` | |
}, '') |
This file contains 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
<script> | |
import c3 from 'c3' | |
import { debounce, cloneDeep, defaultsDeep } from 'lodash' | |
export default { | |
name: 'c3-chart', | |
props: { | |
config: { | |
type: Object, | |
default: () => ({}) |