Skip to content

Instantly share code, notes, and snippets.

View imamnurhy's full-sized avatar

imamnurhy imamnurhy

View GitHub Profile
image: imamnurhy/sshxhelper:latest
stages:
- prepare
- test
- deploy
- release
variables:
VERSION: "2.2.0"
@imamnurhy
imamnurhy / form-filter.blade.php
Last active December 30, 2024 06:21
Form with Jquery
<form id="form-filter" method="POST">
@csrf
@method('POST')
<div id="alert"></div>
<div class="row col-md-12 mt-1 mb-2">
<div class="col-md-1 p-1">
<div class="mt-3 ml-1 float-right">
<strong><i class="icon-filter"></i> FILTER </strong>
</div>
@imamnurhy
imamnurhy / main.dart
Created October 2, 2024 03:53 — forked from felangel/main.dart
Bloc with SearchDelegate
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:bloc/bloc.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@imamnurhy
imamnurhy / docker-compose.yml
Created September 15, 2024 09:11 — forked from benoitpetit/docker-compose.yml
complete Gitlab installation and a runner with docker
version: '4.5'
services:
# GITLAB
gitlab-web:
image: 'gitlab/gitlab-ce:latest'
restart: always
container_name: gitlab-web
hostname: '192.168.0.14'
environment:
<?php
namespace App\Exceptions;
use App\Http\Controllers\Traits\ResponseDefaultTrait;
use Carbon\Carbon;
use Error;
use ErrorException;
use Exception;
use Illuminate\Auth\Access\AuthorizationException;

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@imamnurhy
imamnurhy / GitCommitBestPractices.md
Created January 27, 2022 08:16 — forked from luismts/GitCommitBestPractices.md
Git Tips and Git Commit Best Practices

Git Commit Best Practices

Basic Rules

Commit Related Changes

A commit should be a wrapper for related changes. For example, fixing two different bugs should produce two separate commits. Small commits make it easier for other developers to understand the changes and roll them back if something went wrong. With tools like the staging area and the ability to stage only parts of a file, Git makes it easy to create very granular commits.

Commit Often

Committing often keeps your commits small and, again, helps you commit only related changes. Moreover, it allows you to share your code more frequently with others. That way it‘s easier for everyone to integrate changes regularly and avoid having merge conflicts. Having large commits and sharing them infrequently, in contrast, makes it hard to solve conflicts.

@imamnurhy
imamnurhy / carouse_slider.dart
Last active January 6, 2023 16:37
Flutter Widget
import 'package:carousel_slider/carousel_controller.dart';
import 'package:carousel_slider/carousel_slider.dart';
import 'package:flutter/material.dart';
final List<String> _exampleImageSlide = [
'https://images.unsplash.com/photo-1520342868574-5fa3804e551c?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=6ff92caffcdd63681a35134a6770ed3b&auto=format&fit=crop&w=1951&q=80',
'https://images.unsplash.com/photo-1522205408450-add114ad53fe?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=368f45b0888aeb0b7b08e3a1084d3ede&auto=format&fit=crop&w=1950&q=80',
'https://images.unsplash.com/photo-1519125323398-675f0ddb6308?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=94a1e718d89ca60a6337a6008341ca50&auto=format&fit=crop&w=1950&q=80',
'https://images.unsplash.com/photo-1523205771623-e0faa4d2813d?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=89719a0d55dd05e2deae4120227e6efc&auto=format&fit=crop&w=1953&q=80',
'https://images.unsplash.com/photo-1508704019882-f9cf40e475b4?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=8c6e5e3aba713b17aa1f
@imamnurhy
imamnurhy / alertMessage.js
Last active December 30, 2024 05:36
Java Script
/**
* Success Message
*
* Format pesan berhasil ada ajax request
*
* @param {string} message
*/
function successMessageFormat(data) {
var message = '<strong>Success!</strong>&nbsp;';
class DateTimeFormat {
static format({String format, DateTime dateTime}) {
if (dateTime != null) {
return DateFormat(format).format(dateTime);
} else {
return '-';
}
}
}