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
{ | |
// define o tema do vscode | |
"workbench.colorTheme": "Dracula", | |
// aumenta a fonte do terminal | |
"terminal.integrated.fontSize": 16, | |
// define o tema de icones na sidebar | |
"workbench.iconTheme": "material-icon-theme", | |
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 amqp = require('amqplib'); | |
const uuid = require('uuid'); | |
module.exports = { | |
async sendPublish (req, res) { | |
const url = ``; | |
const exchange = ''; | |
const routing_key = ''; | |
const conn = await amqp.connect(url); |
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
" Must come first because it changes other options | |
set nocompatible | |
" [vim-plug] Load plugins | |
call plug#begin() | |
Plug 'dracula/vim', { 'as': 'dracula' } | |
Plug 'junegunn/vim-easy-align' | |
Plug 'pangloss/vim-javascript' " JavaScript support | |
Plug 'leafgarland/typescript-vim' " TypeScript syntax | |
Plug 'maxmellon/vim-jsx-pretty' " JS and JSX syntax |
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
{ | |
// inicia com uma nova página aberta | |
"workbench.startupEditor": "newUntitledFile", | |
// define o tema padrão do VSCode | |
// "workbench.colorTheme": "Dracula", | |
// define o tema de icones na sidebar | |
// "workbench.iconTheme": "material-icon-theme", | |
// formata e salva o texto | |
"window.zoomLevel": 1, | |
// salva o arquivo assim que perde o foco |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/viniciuscarvalho/.oh-my-zsh" | |
export PATH="$PATH:/usr/local/bin" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME |
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
<template> | |
<v-form ref="form" v-model="valid" lazy-validation> | |
<v-flex xs12> | |
<v-text-field | |
:rules="[rules.required]" | |
label="Firstname" | |
v-model="firstname" | |
@update:error='doSomething' | |
required | |
></v-text-field> |
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
<template lang="html"> | |
<!-- Date --> | |
<div class="component date" @dblclick="modalShow"> | |
<div :class="klass"> | |
<label :class="metadata.labelClass" :for="name"> | |
{{metadata.label}} | |
</label> | |
<div class="form-group date" v-if="metadata.type === 'text'"> | |
<input type="text" | |
:class="metadata.cssClass" |
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
var webpack = require('webpack'); | |
module.exports = { | |
entry: [ "app/app" ] | |
, output: { | |
path: __dirname + "/build" | |
, filename: "bundle.js" | |
, publicPath: "/build/" | |
} | |
, resolve: { |
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
import Inflector from 'ember-inflector'; | |
Ember.Inflector.inflector.rules = { | |
plurals: [ | |
[/$/, 's'], | |
[/(s)$/i, 's'], | |
[/^(paí)s$/i, 'ses'], | |
[/(z|r)$/i, 'es'], | |
[/al$/i, 'ais'], | |
[/el$/i, 'eis'], |
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
# see | |
# https://github.com/danielstjules/pho | |
# https://gist.github.com/carvalhoviniciusluiz/6950abaebf9148b50ffa11b84eb3cd7b | |
# | |
# install | |
# composer global require danielstjules/pho:dev-master | |
# | |
# edit ~/.bash | |
# export PATH=$HOME/.composer/vendor/bin:$PATH | |
# |
NewerOlder