Skip to content

Instantly share code, notes, and snippets.

View falehenrique's full-sized avatar
🏠
Working from home

Henrique Leite falehenrique

🏠
Working from home
View GitHub Profile
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Hugo 0.88.1">
<title>Dashboard Template · Bootstrap v5.1</title>
{
"name": "decentragram",
"version": "0.1.0",
"description": "Decentralized Social Media",
"author": "Dapp University",
"homepage": ".",
"dependencies": {
"@truffle/hdwallet-provider": "^1.1.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.7.0",
/**
*Submitted for verification at Etherscan.io on 2021-07-01
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev String operations.
@falehenrique
falehenrique / Prova Sonda
Created July 20, 2020 20:45
Prova Sonda
A Sonda Marciana
Regras
O problema descrito abaixo requer alguma forma de entrada de dados. Você está livre pra implementar qualquer mecanismo de entrada de dados que desejar na sua solução (dados hard coded dentro de um test unitário, por exemplo).
Você deve prover evidência suficiente de que sua solução está completa para, no mínimo, indicar que funciona corretamente para o consjunto de dados de testes fornecidos.
Recomendamos que você utilize um framework de testes como NUnit ou MSTest. Mesmo que você não tenha os utilizado antes, são fáceis de aprender e incrivelmente uteis.
@falehenrique
falehenrique / gist:0b88811423cada2e520ddb8f5de14124
Created March 14, 2020 15:10
Remote a lot git remote branches
git branch -r | awk -F/ '/\/fix/{print $2"/"$3}' | xargs -I {} git push origin :{}
if you want list before, you can use it:
git branch -r | awk -F/ '/\/fix/{print $2"/"$3}'
In my case I want to delete all branches that start with the prefix "fix"
@falehenrique
falehenrique / README-Template.md
Created February 7, 2020 22:09 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

let responseMock = {'code': 200};
service.incluirCliente(params);
assert(responseMock.code == 200);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<link
rel="stylesheet"
@falehenrique
falehenrique / install-mongodb.md
Created November 22, 2018 10:22 — forked from adamgibbons/install-mongodb.md
Install MongoDB on Mac OS X 10.9

Install MongoDB with Homebrew

brew install mongodb
mkdir -p /data/db

Set permissions for the data directory

Ensure that user account running mongod has correct permissions for the directory:

@Service
public class AulaServiceImpl implements AulaService {
@Autowired
private ProfessorRepository professorRepository;
@Override
public Professor createAula(ProfessorDomain professorDomain) {