Skip to content

Instantly share code, notes, and snippets.


Daniel Schmitz danielschmitz

  • UFJF
  • Juiz de Fora / Brazil
View GitHub Profile
View Suppliers.vue
<div class="card">
<header class="card-header">
<p class="card-header-title">Suppliers</p>
<div class="card-content">
<table class="table is-striped is-fullwidth is-hoverable">
View ReactTemplate.js
import React, {useEffect, useState} from 'react';
export default function App() {
* States
const [_foo, setFoo] = useState([]);
View App.js
import React, {useEffect, useState} from 'react';
export default function App() {
* States
const [_reps, setReps] = useState([]);
View install-laravel-wsl.txt
$ sudo apt update && sudo apt dist-upgrade
$ sudo apt install composer php-zip php-mbstring php-xml php-pgsql
$ composer global require laravel/installer
$ export PATH="$HOME/.composer/vendor/bin:$PATH"
$ laravel new blog
$ cd blog
$ php artisan serve
bonus: postgresql
Emoji Code Commit Message
🎨 :art: Improving structure / format of the code
⚡️ :zap: Improving performance
🔥 :fire: Removing code or files
🐛 :bug: Fixing a bug
🚑 :ambulance: Critical hotfix
:sparkles: Introducing new features
📝 :pencil: Writing docs
🚀 :rocket: Deploying stuff
View router.js
import Vue from 'vue'
import Router from 'vue-router'
import store from '../store'
const router = new Router({
routes: [
path: '/',
danielschmitz / page.vue
Created Aug 31, 2019
A single Vue template file
View page.vue
<div>Vue component</div>
export default {
name: '',
components: {
props: {
View DockerFile
FROM php:7.1-apache
COPY server.crt /etc/apache2/ssl/server.crt
COPY server.key /etc/apache2/ssl/server.key
RUN useradd -u 1000 reportei
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
danielschmitz / associado.js
Created Mar 20, 2019
AXIOS e VUE, como fazer
View associado.js
import http from './http'
const associadoService = {
getAll: page => http.get(`/associados?page=${page}`),
getById: id => http.get(`/associados/${id}`)
export default associadoService
You can’t perform that action at this time.