Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Daniel Schmitz danielschmitz

🏠
Working from home
  • UFJF
  • Juiz de Fora / Brazil
View GitHub Profile
@danielschmitz
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() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
View go_snipets.md
View Suppliers.vue
<template>
<div class="card">
<header class="card-header">
<p class="card-header-title">Suppliers</p>
</header>
<div class="card-content">
<table class="table is-striped is-fullwidth is-hoverable">
<thead>
<tr>
<th>Id</th>
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
View gitmoji.md
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'
Vue.use(Router)
const router = new Router({
routes: [
{
path: '/',
@danielschmitz
danielschmitz / page.vue
Created Aug 31, 2019
A single Vue template file
View page.vue
<template>
<div>Vue component</div>
</template>
<script>
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 \