Skip to content

Instantly share code, notes, and snippets.

Working from home

Daniel Schmitz danielschmitz

Working from home
  • UFJF
  • Juiz de Fora / Brazil
View GitHub Profile
danielschmitz / main.dart
Created Apr 25, 2021
Flutter Example - Gerenciando estado da app - Alterando tema para dark
View main.dart
import 'package:flutter/material.dart';
void main() {
class MyApp extends StatelessWidget {
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 \