Skip to content

Instantly share code, notes, and snippets.

View alissonmarcs's full-sized avatar

Alisson alissonmarcs

View GitHub Profile
@rafaelpontezup
rafaelpontezup / NewAuthorController.java
Last active August 13, 2025 11:53
Example of Spring Boot REST Controller using SpringDoc OpenAPI
package br.com.zup.edu.app10.samples.authors;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.headers.Header;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.ExampleObject;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import org.slf4j.Logger;
@adojos
adojos / maven-commands-reference.md
Last active October 9, 2025 10:12
Maven: Common Maven Commands Reference #maven

Maven Commands Reference

Maven offers a good set of commands and CLI Options to carry out wide range of Dev tasks. Most of these commands are in fact Maven build life cycles, phases and goals.

Here is a list of common Maven commands along with explanation. But before we go through the Maven commands, it is good idea to understand the structure or syntax of Maven commands along with a brief about the Maven lifecycle, phases and goals.


Maven Commands Syntax

@pkenil96
pkenil96 / Spring Framework & Spring Boot.md
Last active August 13, 2025 18:00
Notes on spring concepts

Spring Framework

Servlets - Java technology that you use to handle incoming requests on a server. Its a java object that has special methods for handling incoming HTTP methods. doGet, doPost, doDelete, doPut

Spring Framework

Concepts:

  1. IOC Containers
  2. Dependency Injection
@stevecondylios
stevecondylios / contact-form-rails-6.md
Last active September 4, 2025 13:54
Create a Contact Form in Rails 6

How to make a contact form in rails 6

This is a quick walk through on how to:

  1. make a contact form in rails 6,
  2. test it locally, and
  3. move it into production using heroku and the MailGun addon

This uses the free heroku and mailgun plans. If you get stuck on any part, check the full code here.

@ifindev
ifindev / README.md
Created March 21, 2021 15:49
Tailwind Kanban

Tailwind Kanban

A simple exploration to build a kanban board using css grid in Tailwind CSS. So it's about 187 lines for just the mockup. This is totally normal because I just use plain HTML. For the next update, I will use Vue component to recreate it since it will clean up the code and more reusable.

Anyway, the UI is already responsive. But since I am using grids, I haven't figure out how to apply a horizontal scroll bar for the overflow case just like a normal kanban boards. Also, open up Tailwind Play to try out this project.

The design is inpired from this image. Kanban

Ways to Reference Graph Nodes


Node Class


@mohclips
mohclips / text.sh
Last active January 16, 2026 15:32
Enable - Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
# EDIT - 01 Dec 2023 - Works without the below in Ubuntnu 22.04
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 040: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 044: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# get the pre-compiled driver
<!-- component -->
<div class="min-h-screen flex items-center justify-center bg-gray-100 py-6">
<div class="flex w-full max-w-xs p-4 bg-gray-800">
<ul class="flex flex-col w-full">
<li class="my-px">
<a href="#"
class="flex flex-row items-center h-12 px-4 rounded-lg text-gray-600 bg-gray-100">
<span class="flex items-center justify-center text-lg text-gray-500">
<svg fill="none"
stroke-linecap="round"
@Gustavo-Kuze
Gustavo-Kuze / ngrok_free_multi_tunnels.md
Created October 7, 2020 21:44
Executar múltiplos túneis NGROK

Para configurar o ngrok para rodar tanto o projeto frontend quanto o backend simultaneamente, basta adicionar o seguinte código ao arquivo "C:\Users\USER\.ngrok2\ngrok.yml"

authtoken: 1bGvuFnqnXjihKbkqtx8qVld2ie_2736j4KfrDdMHhBh3uDtn
tunnels:
  portafront:
    proto: http
    addr: 8000
  portaapi:
 proto: http
@crcrpar
crcrpar / README
Last active September 18, 2025 10:47
VSCode Dev Container Configuration for Optuna
If you want to use VSCode's fantastic feature: Dev Container, put the `devcontainer.json` in `.devcontainer` directory.