Skip to content

Instantly share code, notes, and snippets.

maurobaptista / Pagination.Vue
Last active May 15, 2020 23:52
Using Laravel Pagination with IntertiaJS
View Pagination.Vue
<div v-if="hasPages" class="mx-auto mb-4">
<li v-if="onFirstPage" class="inline-block p-2 bg-transparent mx-1 rounded text-gray-400">
<span aria-hidden="true">&lsaquo;</span>
<li v-else class="inline-block p-2 bg-transparent mx-1 rounded text-gray-700">
<inertia-link :href="previousPageUrl" rel="prev">&lsaquo;</inertia-link>
maurobaptista / CameraController.cs
Created February 28, 2020 20:32
Camera Controller for Strategy Games [Unity]
View CameraController.cs
* This code was created by the Youtube channel Game Dev Guide
* Please watch this video:
* Note: It has a couple of small changes, but it should work as the
* code shown on the video.
using UnityEngine;
public class CameraController : MonoBehaviour
maurobaptista / NumberFormat.php
Last active March 2, 2022 19:02
Easily readable numbers
View NumberFormat.php
* Numbers more readable for humans
* It intends to change numbers as 1000 as 1K or 1200000 as 1.2M
* This code is heavly base in this one:
* How to use \NumberFormat::readable(1000);
maurobaptista / powerlevel9k
Last active January 6, 2018 22:44
Powershell Config (powerlevel9k)
View powerlevel9k
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(vcs root_indicator command_execution_time background_jobs time status)
POWERLEVEL9K_TIME_FORMAT="%D{\uf017 %H:%M \uf073 %d/%m/%y}"
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%F{249}%}\u2517%{%F{default}%} $ %{%F{255}%}"