Skip to content

Instantly share code, notes, and snippets.

View arsan-irianto's full-sized avatar

arsan-irianto

  • Yogyakarta, Indonesia
View GitHub Profile
@arsan-irianto
arsan-irianto / AppServiceProvider.php
Last active May 30, 2024 10:37
automatic append query string on laravel pagination
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Pagination\Paginator;
class AppServiceProvider extends ServiceProvider
{
@arsan-irianto
arsan-irianto / folder_structure.md
Created March 25, 2024 07:44 — forked from ayoubzulfiqar/folder_structure.md
The Folder Structure for Every Golang Project

Go - The Ultimate Folder Structure

Organizing your Go (Golang) project's folder structure can help improve code readability, maintainability, and scalability. While there is no one-size-fits-all structure, here's a common folder structure for a Go project:

project-root/
    ├── cmd/
    │   ├── your-app-name/
    │   │   ├── main.go         # Application entry point
    │   │   └── ...             # Other application-specific files
@arsan-irianto
arsan-irianto / ReactPureGmaps
Last active March 15, 2019 00:04
This script used to try integrating ReactJs with pure Google Maps API with following tutorial from here -> https://bit.ly/2UCz0HS
import React, { Component, Fragment } from "react";
import "./App.css";
class App extends Component {
componentDidMount() {
this.renderMap();
}
renderMap = () => {
loadScript(
import React, { useState } from 'react';
const ProductCategoryRow = (props) => {
const category = props.category;
return (
<tr>
<th colSpan="2">
{category}
</th>
</tr>