Skip to content

Instantly share code, notes, and snippets.

View samirmhsnv's full-sized avatar
👋

Samir Mammadhasanov samirmhsnv

👋
  • Baku, Azerbaijan
View GitHub Profile
@samirmhsnv
samirmhsnv / RouteServiceProvider.php
Last active June 26, 2022 12:19
Laravel Routing withController only - Using PHP 8 Attributes on Laravel Routing
<?php
namespace App\Providers;
use App\Attributes\Route as RouteAttribute;
class RouteServiceProvider extends ServiceProvider
{
// ...
@samirmhsnv
samirmhsnv / romb.java
Created October 22, 2019 07:16
romb.java
public class Main {
public static void main(String[] args) {
romb(10);
}
private static void romb (int k){
for (int i = 0; i < k; i++){
print_star(k, i);
}